Implemented new age methods in animals, and made spawned animals via eggs properly age back to children

This commit is contained in:
Nathan Adams
2011-11-24 20:16:43 +00:00
parent 47b4406b7e
commit a7664a104f
2 changed files with 14 additions and 1 deletions

View File

@@ -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);
}
}