public class PlayerCapabilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
allowEdit |
boolean |
allowFlying |
boolean |
disableDamage |
private float |
flySpeed |
boolean |
isCreativeMode |
boolean |
isFlying |
private float |
walkSpeed |
Constructor and Description |
---|
PlayerCapabilities() |
Modifier and Type | Method and Description |
---|---|
float |
getFlySpeed() |
float |
getWalkSpeed() |
void |
readCapabilitiesFromNBT(NBTTagCompound tagCompound) |
void |
setFlySpeed(float speed) |
void |
setPlayerWalkSpeed(float speed) |
void |
writeCapabilitiesToNBT(NBTTagCompound tagCompound) |
public boolean disableDamage
public boolean isFlying
public boolean allowFlying
public boolean isCreativeMode
public boolean allowEdit
private float flySpeed
private float walkSpeed
public void writeCapabilitiesToNBT(NBTTagCompound tagCompound)
public void readCapabilitiesFromNBT(NBTTagCompound tagCompound)
public float getFlySpeed()
public void setFlySpeed(float speed)
public float getWalkSpeed()
public void setPlayerWalkSpeed(float speed)