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

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.util.math.AxisCycle;

AxisCycle is an enum. It has 3 enum constants. They are accessible using the code below.

ZenScript
Copy
<constant:minecraft:direction/axiscycle:none>
<constant:minecraft:direction/axiscycle:forward>
<constant:minecraft:direction/axiscycle:backward>

Name: cycle

Return Type: Axis

ZenScript
Copy
AxisCycle.cycle(axis as Axis) as Axis
ПараметрТипОписание
Параметр
axis
Тип
Axis
Описание
No Description Provided

Name: cycle

Return Type: double

ZenScript
Copy
AxisCycle.cycle(x as double, y as double, z as double, axis as Axis) as double
ПараметрТипОписание
Параметр
x
Тип
double
Описание
No Description Provided
Параметр
y
Тип
double
Описание
No Description Provided
Параметр
z
Тип
double
Описание
No Description Provided
Параметр
axis
Тип
Axis
Описание
No Description Provided

Name: cycle

Return Type: int

ZenScript
Copy
AxisCycle.cycle(x as int, y as int, z as int, axis as Axis) as int
ПараметрТипОписание
Параметр
x
Тип
int
Описание
No Description Provided
Параметр
y
Тип
int
Описание
No Description Provided
Параметр
z
Тип
int
Описание
No Description Provided
Параметр
axis
Тип
Axis
Описание
No Description Provided

Name: inverse

Return Type: AxisCycle

ZenScript
Copy
// AxisCycle.inverse() as AxisCycle

myAxisCycle.inverse();