diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-10-11 02:22:38 +0100 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-10-11 02:22:38 +0100 |
commit | 537840d1dfc7dbb5ca9401ee78d80881cda8e210 (patch) | |
tree | e68a168ecd9b531ebd2b963c155b7f8529186600 /src/main | |
parent | c89a0dbe9927bf84babb70a4052fd8eab22f7459 (diff) | |
download | bukkit-537840d1dfc7dbb5ca9401ee78d80881cda8e210.tar bukkit-537840d1dfc7dbb5ca9401ee78d80881cda8e210.tar.gz bukkit-537840d1dfc7dbb5ca9401ee78d80881cda8e210.tar.lz bukkit-537840d1dfc7dbb5ca9401ee78d80881cda8e210.tar.xz bukkit-537840d1dfc7dbb5ca9401ee78d80881cda8e210.zip |
Added new entity.get/setTicksLived for identifying an entity's age
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 5fa4ee10..9b0ab70f 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -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); } |