Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Implemented getRemainingAir/setRemainingAir/getMaximumAir/setMaximumAir on LivingEntity
Dieser Commit ist enthalten in:
Ursprung
c75e53935f
Commit
7369ef7300
@ -62,7 +62,7 @@ public abstract class Entity {
|
||||
public int ticksLived;
|
||||
public int maxFireTicks;
|
||||
public int fireTicks;
|
||||
protected int maxAirTicks;
|
||||
public int maxAirTicks; // Craftbukkit: Make public
|
||||
protected boolean ab;
|
||||
public int noDamageTicks;
|
||||
public int airTicks;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren