AxisCycle
Link to axiscycle
导入类
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 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 CopyAxisCycle.NONE
AxisCycle.FORWARD
AxisCycle.BACKWARD
使用方式
Link to 使用方式
Name: cycle
Return Type: double
ZenScript CopyAxisCycle.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 CopyAxisCycle.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();