public class PlayerAbilities extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
allowFlying |
boolean |
allowModifyWorld |
boolean |
creativeMode |
boolean |
flying |
private float |
flySpeed |
boolean |
invulnerable |
private float |
walkSpeed |
Constructor and Description |
---|
PlayerAbilities() |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(CompoundTag compoundTag) |
float |
getFlySpeed() |
float |
getWalkSpeed() |
void |
serialize(CompoundTag compoundTag) |
void |
setFlySpeed(float flySpeed) |
void |
setWalkSpeed(float walkSpeed) |
public boolean invulnerable
public boolean flying
public boolean allowFlying
public boolean creativeMode
public boolean allowModifyWorld
private float flySpeed
private float walkSpeed
public void serialize(CompoundTag compoundTag)
public void deserialize(CompoundTag compoundTag)
public float getFlySpeed()
@Environment(value=CLIENT) public void setFlySpeed(float flySpeed)
public float getWalkSpeed()
@Environment(value=CLIENT) public void setWalkSpeed(float walkSpeed)