13
0
geforkt von Mirrors/Paper

Added new entity.get/setTicksLived for identifying an entity's age

By: Nathan Adams <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-10-11 02:22:38 +01:00
Ursprung b50b4ca047
Commit ef674c0b83

Datei anzeigen

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