2011-01-17 04:03:19 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
2011-01-18 07:16:05 +01:00
|
|
|
//CraftBukkit start
|
2011-01-17 09:17:16 +01:00
|
|
|
import org.bukkit.craftbukkit.CraftServer;
|
|
|
|
import org.bukkit.craftbukkit.entity.CraftAnimals;
|
2011-01-18 07:16:05 +01:00
|
|
|
//CraftBukkit end
|
2011-01-17 09:17:16 +01:00
|
|
|
|
2011-01-17 04:03:19 +01:00
|
|
|
public abstract class EntityAnimals extends EntityCreature implements IAnimals {
|
|
|
|
|
|
|
|
public EntityAnimals(World world) {
|
|
|
|
super(world);
|
2011-01-17 09:17:16 +01:00
|
|
|
//CraftBukkit start
|
|
|
|
CraftServer server = ((WorldServer) this.l).getServer();
|
|
|
|
this.bukkitEntity = new CraftAnimals(server, this);
|
|
|
|
//CraftBukkit end
|
2011-01-17 04:03:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
protected float a(int i, int j, int k) {
|
|
|
|
if (l.a(i, j - 1, k) == Block.u.bi) {
|
|
|
|
return 10F;
|
|
|
|
} else {
|
|
|
|
return l.l(i, j, k) - 0.5F;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void a(NBTTagCompound nbttagcompound) {
|
|
|
|
super.a(nbttagcompound);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void b(NBTTagCompound nbttagcompound) {
|
|
|
|
super.b(nbttagcompound);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean b() {
|
|
|
|
int i = MathHelper.b(p);
|
|
|
|
int j = MathHelper.b(z.b);
|
|
|
|
int k = MathHelper.b(r);
|
|
|
|
|
|
|
|
return l.a(i, j - 1, k) == Block.u.bi && l.j(i, j, k) > 8 && super.b();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int c() {
|
|
|
|
return 120;
|
|
|
|
}
|
|
|
|
}
|