|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.entity.player.PlayerCapabilities
public class PlayerCapabilities
| Field Summary | |
|---|---|
boolean |
allowEdit
Indicates whether the player is allowed to modify the surroundings |
boolean |
allowFlying
whether or not to allow the player to fly when they double jump. |
boolean |
disableDamage
Disables player damage. |
boolean |
isCreativeMode
Used to determine if creative mode is enabled, and therefore if items should be depleted on usage |
boolean |
isFlying
Sets/indicates whether the player is flying. |
| Constructor Summary | |
|---|---|
PlayerCapabilities()
|
|
| Method Summary | |
|---|---|
void |
func_82877_b(float par1)
|
float |
getFlySpeed()
|
float |
getWalkSpeed()
|
void |
readCapabilitiesFromNBT(NBTTagCompound par1NBTTagCompound)
|
void |
setFlySpeed(float par1)
|
void |
writeCapabilitiesToNBT(NBTTagCompound par1NBTTagCompound)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean disableDamage
public boolean isFlying
public boolean allowFlying
public boolean isCreativeMode
public boolean allowEdit
| Constructor Detail |
|---|
public PlayerCapabilities()
| Method Detail |
|---|
public void writeCapabilitiesToNBT(NBTTagCompound par1NBTTagCompound)
public void readCapabilitiesFromNBT(NBTTagCompound par1NBTTagCompound)
public float getFlySpeed()
public void setFlySpeed(float par1)
public float getWalkSpeed()
public void func_82877_b(float par1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||