diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-31 01:23:21 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-31 01:23:21 +0000 |
commit | c6d4cbda5dfdd2629004b69c51e19326dd2dd6d0 (patch) | |
tree | 80b44e41999e2f87983c35f620b8abd68a69de58 /src | |
parent | 9ac3600a07df0db0b2a453120a5e2a874640ae91 (diff) | |
download | bukkit-c6d4cbda5dfdd2629004b69c51e19326dd2dd6d0.tar bukkit-c6d4cbda5dfdd2629004b69c51e19326dd2dd6d0.tar.gz bukkit-c6d4cbda5dfdd2629004b69c51e19326dd2dd6d0.tar.lz bukkit-c6d4cbda5dfdd2629004b69c51e19326dd2dd6d0.tar.xz bukkit-c6d4cbda5dfdd2629004b69c51e19326dd2dd6d0.zip |
Added getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/LivingEntity.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java index e58122d1..fb5c6fbd 100644 --- a/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/src/main/java/org/bukkit/entity/LivingEntity.java @@ -59,4 +59,32 @@ public interface LivingEntity extends Entity { * @return */ public Vehicle getVehicle(); + + /** + * Returns the amount of air that this entity has remaining, in ticks + * + * @return Amount of air remaining + */ + public int getRemainingAir(); + + /** + * Sets the amount of air that this entity has remaining, in ticks + * + * @param ticks Amount of air remaining + */ + public void setRemainingAir(int ticks); + + /** + * Returns the maximum amount of air this entity can have, in ticks + * + * @return Maximum amount of air + */ + public int getMaximumAir(); + + /** + * Sets the maximum amount of air this entity can have, in ticks + * + * @param ticks Maximum amount of air + */ + public void setMaximumAir(int ticks); } |