Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 32 lines 856 B view raw
1package net.minecraft.server; 2 3public abstract class EntityAnimal extends EntityCreature implements IAnimal { 4 5 public EntityAnimal(World world) { 6 super(world); 7 } 8 9 protected float a(int i, int j, int k) { 10 return this.world.getTypeId(i, j - 1, k) == Block.GRASS.id ? 10.0F : this.world.n(i, j, k) - 0.5F; 11 } 12 13 public void b(NBTTagCompound nbttagcompound) { 14 super.b(nbttagcompound); 15 } 16 17 public void a(NBTTagCompound nbttagcompound) { 18 super.a(nbttagcompound); 19 } 20 21 public boolean d() { 22 int i = MathHelper.floor(this.locX); 23 int j = MathHelper.floor(this.boundingBox.b); 24 int k = MathHelper.floor(this.locZ); 25 26 return this.world.getTypeId(i, j - 1, k) == Block.GRASS.id && this.world.k(i, j, k) > 8 && super.d(); 27 } 28 29 public int e() { 30 return 120; 31 } 32}