mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Implemented getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
91b6778723
commit
e658c25515
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue