mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Added new set/get age methods to Animals
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
d29402070b
commit
34f857ad15
1 changed files with 15 additions and 1 deletions
|
@ -4,4 +4,18 @@ package org.bukkit.entity;
|
|||
* Represents an Animal.
|
||||
*
|
||||
*/
|
||||
public interface Animals extends Creature {}
|
||||
public interface Animals extends Creature {
|
||||
/**
|
||||
* Gets the age of this animal.
|
||||
*
|
||||
* @return Age
|
||||
*/
|
||||
public int getAge();
|
||||
|
||||
/**
|
||||
* Sets the age of this animal.
|
||||
*
|
||||
* @param age New age
|
||||
*/
|
||||
public void setAge(int age);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue