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.
import crafttweaker . api.util.math . AxisCycle;
Undocumented Interfaces Comparable <Enum >
AxisCycle is an enum with 3 constants. They are accessible like so:
< constant : minecraft:direction/axiscycle:backward >
< constant : minecraft:direction/axiscycle:forward >
< constant : minecraft:direction/axiscycle:none >
// AxisCycle.cycle(x as int, y as int, z as int, axis as Axis) as int;
< constant : minecraft:direction/axiscycle:backward > .cycle(myInt, myInt, myInt, myAxis);
Parameters:
x: int
Type: int
y: int
Type: int
z: int
Type: int
Return Type:
int
// AxisCycle.cycle(x as double, y as double, z as double, axis as Axis) as double;
< constant : minecraft:direction/axiscycle:backward > .cycle(myDouble, myDouble, myDouble, myAxis);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
Return Type:
double
// AxisCycle.cycle(axis as Axis) as Axis;
< constant : minecraft:direction/axiscycle:backward > .cycle(myAxis);
Return Type:
Axis
// AxisCycle.inverse() as AxisCycle;
< constant : minecraft:direction/axiscycle:backward > .inverse();
Return Type:
AxisCycle