AxisCycle
Link to axiscycle
Importare la Classe
Link to importare-la-classe
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.math.AxisCycle;
Enum Constants
Link to enum-constants
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>
Metodi
Link to metodi
Name: cycle
Return Type: double
ZenScript CopyAxisCycle.cycle(x as double, y as double, z as double, axis as Axis) as double
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo double |
Parametro axis | Tipo Axis |
Name: cycle
Return Type: int
ZenScript CopyAxisCycle.cycle(x as int, y as int, z as int, axis as Axis) as int
Parametro | Tipo |
---|---|
Parametro x | Tipo int |
Parametro y | Tipo int |
Parametro z | Tipo int |
Parametro axis | Tipo Axis |
Name: inverse
Return Type: AxisCycle
ZenScript Copy// AxisCycle.inverse() as AxisCycle
myAxisCycle.inverse();