From a7664a104fa9fb206921e9245303579b1360f5c0 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Thu, 24 Nov 2011 20:16:43 +0000 Subject: Implemented new age methods in animals, and made spawned animals via eggs properly age back to children --- src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/org/bukkit') diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java index 4f9264c4..e4b51ec8 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftAnimals.java @@ -19,4 +19,12 @@ public class CraftAnimals extends CraftCreature implements Animals { public EntityAnimal getHandle() { return (EntityAnimal) entity; } + + public int getAge() { + return getHandle().getAge(); + } + + public void setAge(int age) { + getHandle().setAge(age); + } } -- cgit v1.2.3