[Bleeding] Implement animal breeding API changes.

This commit is contained in:
Erik Broes
2012-01-05 19:30:00 +01:00
parent 520cb5aa5b
commit 29096577b6
3 changed files with 293 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ public class EntityEgg extends EntityProjectile {
org.bukkit.entity.Entity entity = world.getWorld().spawn(new Location(world.getWorld(), this.locX, this.locY, this.locZ, this.yaw, 0.0F), hatchingType.getEntityClass(), SpawnReason.EGG);
if (entity instanceof Animals) {
((Animals) entity).setAge(-24000);
((Animals) entity).setBaby();
}
}
}