Class Abilities
java.lang.Object
net.minecraft.world.entity.player.Abilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final float
private static final boolean
private static final boolean
private static final boolean
private static final boolean
private static final float
private static final boolean
boolean
private float
boolean
boolean
boolean
boolean
Deprecated.private float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSaveData
(CompoundTag p_35946_) float
float
void
loadSaveData
(CompoundTag p_35951_) void
setFlyingSpeed
(float p_35944_) void
setWalkingSpeed
(float p_35949_)
-
Field Details
-
DEFAULT_INVULNERABLE
private static final boolean DEFAULT_INVULNERABLE- See Also:
-
DEFAULY_FLYING
private static final boolean DEFAULY_FLYING- See Also:
-
DEFAULT_MAY_FLY
private static final boolean DEFAULT_MAY_FLY- See Also:
-
DEFAULT_INSTABUILD
private static final boolean DEFAULT_INSTABUILD- See Also:
-
DEFAULT_MAY_BUILD
private static final boolean DEFAULT_MAY_BUILD- See Also:
-
DEFAULT_FLYING_SPEED
private static final float DEFAULT_FLYING_SPEED- See Also:
-
DEFAULT_WALKING_SPEED
private static final float DEFAULT_WALKING_SPEED- See Also:
-
invulnerable
public boolean invulnerable -
flying
public boolean flying -
mayfly
Deprecated.Neoforge: useIPlayerExtension.mayFly()
to read andNeoForgeMod.CREATIVE_FLIGHT
Attribute to modify -
instabuild
public boolean instabuild -
mayBuild
public boolean mayBuild -
flyingSpeed
private float flyingSpeed -
walkingSpeed
private float walkingSpeed
-
-
Constructor Details
-
Abilities
public Abilities()
-
-
Method Details
-
addSaveData
-
loadSaveData
-
getFlyingSpeed
public float getFlyingSpeed() -
setFlyingSpeed
public void setFlyingSpeed(float p_35944_) -
getWalkingSpeed
public float getWalkingSpeed() -
setWalkingSpeed
public void setWalkingSpeed(float p_35949_)
-
IPlayerExtension.mayFly()
to read andNeoForgeMod.CREATIVE_FLIGHT
Attribute to modify