Abilities

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.entity.type.player.Abilities;

Members

Getter
script.zs
// Abilities.flyingSpeed as float
myAbilities.flyingSpeed

Return Type: float

Setter
script.zs
// Abilities.flyingSpeed = (param0 as float);
myAbilities.flyingSpeed = myFloat;

Parameters:

param0 Type: float
flyingSpeed() as float
script.zs
// Abilities.flyingSpeed() as float;
myAbilities.flyingSpeed();

Return Type: float

flyingSpeed(param0 as float)
script.zs
// Abilities.flyingSpeed(param0 as float);
myAbilities.flyingSpeed(myFloat);

Parameters:

param0 Type: float
Getter
script.zs
// Abilities.walkingSpeed as float
myAbilities.walkingSpeed

Return Type: float

Setter
script.zs
// Abilities.walkingSpeed = (param0 as float);
myAbilities.walkingSpeed = myFloat;

Parameters:

param0 Type: float
walkingSpeed() as float
script.zs
// Abilities.walkingSpeed() as float;
myAbilities.walkingSpeed();

Return Type: float

walkingSpeed(param0 as float)
script.zs
// Abilities.walkingSpeed(param0 as float);
myAbilities.walkingSpeed(myFloat);

Parameters:

param0 Type: float