From 7d5f8c95d48980f256ac6356d183e3af7f2fecf6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 31 Jan 2011 01:23:21 +0000 Subject: [PATCH] Added getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity By: Dinnerbone --- .../java/org/bukkit/entity/LivingEntity.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index e58122d1ea..fb5c6fbd8d 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/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); }