mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Implemented new age methods in animals, and made spawned animals via eggs properly age back to children
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
cbcd3aa1ae
commit
2f98915d03
@ -19,4 +19,12 @@ public class CraftAnimals extends CraftCreature implements Animals {
|
|||||||
public EntityAnimal getHandle() {
|
public EntityAnimal getHandle() {
|
||||||
return (EntityAnimal) entity;
|
return (EntityAnimal) entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getAge() {
|
||||||
|
return getHandle().getAge();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAge(int age) {
|
||||||
|
getHandle().setAge(age);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user