AxisCycle

Importing the class

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.

script.zs
import crafttweaker.api.util.math.AxisCycle;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

AxisCycle is an enum with 3 constants. They are accessible like so:

script.zs
// AxisCycle.BACKWARD
<constant:minecraft:direction/axiscycle:backward>
// AxisCycle.FORWARD
<constant:minecraft:direction/axiscycle:forward>
// AxisCycle.NONE
<constant:minecraft:direction/axiscycle:none>

Members

cycle(x as int, y as int, z as int, axis as Axis) as int
script.zs
// 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 Type: int
y Type: int
z Type: int
axis Type: Axis

Return Type: int

cycle(x as double, y as double, z as double, axis as Axis) as double
script.zs
// 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 Type: double
y Type: double
z Type: double
axis Type: Axis

Return Type: double

cycle(axis as Axis) as Axis
script.zs
// AxisCycle.cycle(axis as Axis) as Axis;
<constant:minecraft:direction/axiscycle:backward>.cycle(myAxis);

Parameters:

axis Type: Axis

Return Type: Axis

inverse() as AxisCycle
script.zs
// AxisCycle.inverse() as AxisCycle;
<constant:minecraft:direction/axiscycle:backward>.inverse();

Return Type: AxisCycle