mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
Added getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
6f3347fe1c
commit
7d5f8c95d4
1 changed files with 28 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue