Abilities
Link to abilities
Importare la Classe
Link to importare-la-classe
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;
Metodi
Link to metodi
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)
Parametro | Tipo |
---|---|
Parametro param0 | Tipo float |
Name: setWalkingSpeed
ZenScript CopyAbilities.setWalkingSpeed(param0 as float)
Parametro | Tipo |
---|---|
Parametro param0 | Tipo float |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome flyingSpeed | Tipo float | Ha Getter sì | Ha Setter sì |
Nome walkingSpeed | Tipo float | Ha Getter sì | Ha Setter sì |