YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.player.PlayerCapabilities Class Reference

Public Member Functions

void writeCapabilitiesToNBT (NBTTagCompound par1NBTTagCompound)
 
void readCapabilitiesFromNBT (NBTTagCompound par1NBTTagCompound)
 
float getFlySpeed ()
 
void setFlySpeed (float par1)
 
float getWalkSpeed ()
 
void setPlayerWalkSpeed (float par1)
 

Public Attributes

boolean disableDamage = false
 
boolean isFlying = false
 
boolean allowFlying = false
 
boolean isCreativeMode = false
 
boolean allowEdit = true
 

Member Function Documentation

float net.minecraft.entity.player.PlayerCapabilities.getFlySpeed ( )
float net.minecraft.entity.player.PlayerCapabilities.getWalkSpeed ( )
void net.minecraft.entity.player.PlayerCapabilities.readCapabilitiesFromNBT ( NBTTagCompound  par1NBTTagCompound)
void net.minecraft.entity.player.PlayerCapabilities.setFlySpeed ( float  par1)
void net.minecraft.entity.player.PlayerCapabilities.setPlayerWalkSpeed ( float  par1)
void net.minecraft.entity.player.PlayerCapabilities.writeCapabilitiesToNBT ( NBTTagCompound  par1NBTTagCompound)

Member Data Documentation

boolean net.minecraft.entity.player.PlayerCapabilities.allowEdit = true

Indicates whether the player is allowed to modify the surroundings

boolean net.minecraft.entity.player.PlayerCapabilities.allowFlying = false

whether or not to allow the player to fly when they double jump.

boolean net.minecraft.entity.player.PlayerCapabilities.disableDamage = false

Disables player damage.

boolean net.minecraft.entity.player.PlayerCapabilities.isCreativeMode = false

Used to determine if creative mode is enabled, and therefore if items should be depleted on usage

boolean net.minecraft.entity.player.PlayerCapabilities.isFlying = false

Sets/indicates whether the player is flying.


The documentation for this class was generated from the following file: