Импорт класса

Link to импорт-класса

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
Copy
import crafttweaker.api.entity.type.player.Abilities;

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

Return Type: void

ZenScript
Copy
Abilities.setFlyingSpeed(param0 as float) as void
ПараметрТипОписание
Параметр
param0
Тип
float
Описание
No Description Provided

Name: setWalkingSpeed

Return Type: void

ZenScript
Copy
Abilities.setWalkingSpeed(param0 as float) as void
ПараметрТипОписание
Параметр
param0
Тип
float
Описание
No Description Provided

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
flyingSpeed
Тип
float
Имеет Getter
true
Имеет Setter
true
Описание
No Description Provided
Название
walkingSpeed
Тип
float
Имеет Getter
true
Имеет Setter
true
Описание
No Description Provided