mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Added new entity.get/setTicksLived for identifying an entity's age
This commit is contained in:
parent
c89a0dbe99
commit
537840d1df
1 changed files with 19 additions and 0 deletions
|
@ -173,4 +173,23 @@ public interface Entity {
|
|||
* @return unique id
|
||||
*/
|
||||
public UUID getUniqueId();
|
||||
|
||||
/**
|
||||
* Gets the amount of ticks this entity has lived for.
|
||||
* <p>
|
||||
* This is the equivalent to "age" in entities.
|
||||
*
|
||||
* @return Age of entity
|
||||
*/
|
||||
public int getTicksLived();
|
||||
|
||||
/**
|
||||
* Sets the amount of ticks this entity has lived for.
|
||||
* <p>
|
||||
* This is the equivalent to "age" in entities. May not be
|
||||
* less than one tick.
|
||||
*
|
||||
* @param value Age of entity
|
||||
*/
|
||||
public void setTicksLived(int value);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue