Java 类net.minecraft.server.EntityFishingHook 实例源码

项目:CraftBukkit    文件:CraftFish.java   
public double getBiteChance() {
    EntityFishingHook hook = getHandle();

    if (this.biteChance == -1) {
        if (hook.world.isRainingAt(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ))) {
            return 1/300.0;
        }
        return 1/500.0;
    }
    return this.biteChance;
}
项目:Craftbukkit    文件:CraftFish.java   
public double getBiteChance() {
    EntityFishingHook hook = getHandle();

    if (this.biteChance == -1) {
        if (hook.world.isRainingAt(new BlockPosition(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ)))) {
            return 1/300.0;
        }
        return 1/500.0;
    }
    return this.biteChance;
}
项目:Almura-Server    文件:CraftFish.java   
public double getBiteChance() {
    EntityFishingHook hook = getHandle();

    if (this.biteChance == -1) {
        if (hook.world.isRainingAt(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ))) {
            return 1/300.0;
        }
        return 1/500.0;
    }
    return this.biteChance;
}
项目:Tweakkit-Server    文件:CraftFish.java   
public double getBiteChance() {
    EntityFishingHook hook = getHandle();

    if (this.biteChance == -1) {
        if (hook.world.isRainingAt(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ))) {
            return 1/300.0;
        }
        return 1/500.0;
    }
    return this.biteChance;
}
项目:SpigotSource    文件:CraftFish.java   
public double getBiteChance() {
    EntityFishingHook hook = getHandle();

    if (this.biteChance == -1) {
        if (hook.world.isRainingAt(new BlockPosition(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ)))) {
            return 1/300.0;
        }
        return 1/500.0;
    }
    return this.biteChance;
}
项目:Craft-city    文件:CraftFish.java   
public double getBiteChance() {
    EntityFishingHook hook = getHandle();

    if (this.biteChance == -1) {
        if (hook.world.F(MathHelper.floor(hook.locX), MathHelper.floor(hook.locY) + 1, MathHelper.floor(hook.locZ))) {
            return 1/300.0;
        }
        return 1/500.0;
    }
    return this.biteChance;
}
项目:CraftBukkit    文件:CraftFish.java   
public CraftFish(CraftServer server, EntityFishingHook entity) {
    super(server, entity);
}
项目:CraftBukkit    文件:CraftFish.java   
@Override
public EntityFishingHook getHandle() {
    return (EntityFishingHook) entity;
}
项目:Craftbukkit    文件:CraftFish.java   
public CraftFish(CraftServer server, EntityFishingHook entity) {
    super(server, entity);
}
项目:Craftbukkit    文件:CraftFish.java   
@Override
public EntityFishingHook getHandle() {
    return (EntityFishingHook) entity;
}
项目:Almura-Server    文件:CraftFish.java   
public CraftFish(CraftServer server, EntityFishingHook entity) {
    super(server, entity);
}
项目:Almura-Server    文件:CraftFish.java   
@Override
public EntityFishingHook getHandle() {
    return (EntityFishingHook) entity;
}
项目:Tweakkit-Server    文件:CraftFish.java   
public CraftFish(CraftServer server, EntityFishingHook entity) {
    super(server, entity);
}
项目:Tweakkit-Server    文件:CraftFish.java   
@Override
public EntityFishingHook getHandle() {
    return (EntityFishingHook) entity;
}
项目:SpigotSource    文件:CraftFish.java   
public CraftFish(CraftServer server, EntityFishingHook entity) {
    super(server, entity);
}
项目:SpigotSource    文件:CraftFish.java   
@Override
public EntityFishingHook getHandle() {
    return (EntityFishingHook) entity;
}
项目:Craft-city    文件:CraftFish.java   
public CraftFish(CraftServer server, EntityFishingHook entity) {
    super(server, entity);
}
项目:Craft-city    文件:CraftFish.java   
@Override
public EntityFishingHook getHandle() {
    return (EntityFishingHook) entity;
}