mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-15 12:02:57 +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
@ -4,4 +4,18 @@ package org.bukkit.entity;
|
|||||||
* Represents an Animal.
|
* 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 New Issue
Block a user