AxisCycle
Importing the class
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.
import crafttweaker.api.util.math.AxisCycle;Enum Constants
AxisCycle is an enum. It has 3 enum constants. They are accessible using the code below.
AxisCycle.NONEAxisCycle.FORWARDAxisCycle.BACKWARDMethods
Return Type: double
AxisCycle.cycle(x as double, y as double, z as double, axis as Axis) as double| Parameter | Type | Description |
|---|---|---|
Parameter x | Type double | Description No Description Provided |
Parameter y | Type double | Description No Description Provided |
Parameter z | Type double | Description No Description Provided |
Parameter axis | Type Axis | Description No Description Provided |
Return Type: int
AxisCycle.cycle(x as int, y as int, z as int, axis as Axis) as int| Parameter | Type | Description |
|---|---|---|
Parameter x | Type int | Description No Description Provided |
Parameter y | Type int | Description No Description Provided |
Parameter z | Type int | Description No Description Provided |
Parameter axis | Type Axis | Description No Description Provided |
Return Type: AxisCycle
// AxisCycle.inverse() as AxisCycle
myAxisCycle.inverse();