Abilities
Link to abilities
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.entity.type.player.Abilities;
Methods
Link to methods
Name: getFlyingSpeed
Return Type: float
ZenScript Copy// Abilities.getFlyingSpeed() as float
myAbilities.getFlyingSpeed();
Name: getWalkingSpeed
Return Type: float
ZenScript Copy// Abilities.getWalkingSpeed() as float
myAbilities.getWalkingSpeed();
Name: setFlyingSpeed
ZenScript CopyAbilities.setFlyingSpeed(param0 as float)
Parameter | Type |
---|---|
Parameter param0 | Type float |
Name: setWalkingSpeed
ZenScript CopyAbilities.setWalkingSpeed(param0 as float)
Parameter | Type |
---|---|
Parameter param0 | Type float |
Properties
Link to properties
名称 | Type | Has Getter | Has Setter |
---|---|---|---|
名称 flyingSpeed | Type float | Has Getter true | Has Setter true |
名称 walkingSpeed | Type float | Has Getter true | Has Setter true |