Axis
Link to axis
Импорт класса
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 Copyimport crafttweaker.api.util.direction.Axis;
Implemented Interfaces
Link to implemented-interfaces
Axis implements the following interfaces. That means all methods defined in these interfaces are also available in Axis
- StringRepresentable
- Predicate<Direction>
Enum Constants
Link to enum-constants
Axis is an enum. It has 3 enum constants. They are accessible using the code below.
ZenScript CopyAxis.X
Axis.Y
Axis.Z
Методы
Link to методы
Name: choose
Return Type: double
ZenScript CopyAxis.choose(x as double, y as double, z as double) as double
Параметр | Тип | Описание |
---|---|---|
Параметр x | Тип double | Описание No Description Provided |
Параметр y | Тип double | Описание No Description Provided |
Параметр z | Тип double | Описание No Description Provided |
Name: choose
Return Type: int
ZenScript CopyAxis.choose(x as int, y as int, z as int) as int
Параметр | Тип | Описание |
---|---|---|
Параметр x | Тип int | Описание No Description Provided |
Параметр y | Тип int | Описание No Description Provided |
Параметр z | Тип int | Описание No Description Provided |
Name: getName
Return Type: string
ZenScript Copy// Axis.getName() as string
myAxis.getName();
Name: isHorizontal
Return Type: boolean
ZenScript Copy// Axis.isHorizontal() as boolean
myAxis.isHorizontal();
Name: isVertical
Return Type: boolean
ZenScript Copy// Axis.isVertical() as boolean
myAxis.isVertical();
Name: test
Return Type: boolean
ZenScript CopyAxis.test(direction as Direction) as boolean
Параметр | Тип | Описание |
---|---|---|
Параметр direction | Тип Direction | Описание No Description Provided |
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название horizontal | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название name | Тип string | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название plane | Тип Plane | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название vertical | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |