Implemented getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-01-31 01:23:10 +00:00
parent 91b6778723
commit e658c25515

View file

@ -96,4 +96,20 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
return null;
}
public int getRemainingAir() {
return entity.airTicks;
}
public void setRemainingAir(int ticks) {
entity.airTicks = ticks;
}
public int getMaximumAir() {
return entity.maxAirTicks;
}
public void setMaximumAir(int ticks) {
entity.maxAirTicks = ticks;
}
}