Class PlayerCapabilities

java.lang.Object
net.minecraft.src.PlayerCapabilities

public class PlayerCapabilities extends Object
  • Field Details

    • disableDamage

      public boolean disableDamage
      Disables player damage.
    • isFlying

      public boolean isFlying
      Sets/indicates whether the player is flying.
    • allowFlying

      public boolean allowFlying
      whether or not to allow the player to fly when they double jump.
    • isCreativeMode

      public boolean isCreativeMode
      Used to determine if creative mode is enabled, and therefore if items should be depleted on usage
    • allowEdit

      public boolean allowEdit
      Indicates whether the player is allowed to modify the surroundings
  • Constructor Details

    • PlayerCapabilities

      public PlayerCapabilities()
  • Method Details

    • writeCapabilitiesToNBT

      public void writeCapabilitiesToNBT(NBTTagCompound par1NBTTagCompound)
    • readCapabilitiesFromNBT

      public void readCapabilitiesFromNBT(NBTTagCompound par1NBTTagCompound)
    • getFlySpeed

      public float getFlySpeed()
    • setFlySpeed

      public void setFlySpeed(float par1)
    • getWalkSpeed

      public float getWalkSpeed()
    • setPlayerWalkSpeed

      public void setPlayerWalkSpeed(float par1)