Package net.minecraft.src
Class PlayerCapabilities
java.lang.Object
net.minecraft.src.PlayerCapabilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIndicates whether the player is allowed to modify the surroundingsbooleanwhether or not to allow the player to fly when they double jump.booleanDisables player damage.booleanUsed to determine if creative mode is enabled, and therefore if items should be depleted on usagebooleanSets/indicates whether the player is flying. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatvoidreadCapabilitiesFromNBT(NBTTagCompound par1NBTTagCompound) voidsetFlySpeed(float par1) voidsetPlayerWalkSpeed(float par1) voidwriteCapabilitiesToNBT(NBTTagCompound par1NBTTagCompound)
-
Field Details
-
disableDamage
public boolean disableDamageDisables player damage. -
isFlying
public boolean isFlyingSets/indicates whether the player is flying. -
allowFlying
public boolean allowFlyingwhether or not to allow the player to fly when they double jump. -
isCreativeMode
public boolean isCreativeModeUsed to determine if creative mode is enabled, and therefore if items should be depleted on usage -
allowEdit
public boolean allowEditIndicates whether the player is allowed to modify the surroundings
-
-
Constructor Details
-
PlayerCapabilities
public PlayerCapabilities()
-
-
Method Details
-
writeCapabilitiesToNBT
-
readCapabilitiesFromNBT
-
getFlySpeed
public float getFlySpeed() -
setFlySpeed
public void setFlySpeed(float par1) -
getWalkSpeed
public float getWalkSpeed() -
setPlayerWalkSpeed
public void setPlayerWalkSpeed(float par1)
-