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
Copy
import crafttweaker.api.util.math.OctahedralGroup;

已实现的接口

Link to 已实现的接口

OctahedralGroup implements the following interfaces. That means all methods defined in these interfaces are also available in OctahedralGroup

OctahedralGroup is an enum. It has 48 enum constants. They are accessible using the code below.

ZenScript
Copy
<constant:minecraft:math/octahedralgroup:identity>
<constant:minecraft:math/octahedralgroup:rot_180_face_xy>
<constant:minecraft:math/octahedralgroup:rot_180_face_xz>
<constant:minecraft:math/octahedralgroup:rot_180_face_yz>
<constant:minecraft:math/octahedralgroup:rot_120_nnn>
<constant:minecraft:math/octahedralgroup:rot_120_nnp>
<constant:minecraft:math/octahedralgroup:rot_120_npn>
<constant:minecraft:math/octahedralgroup:rot_120_npp>
<constant:minecraft:math/octahedralgroup:rot_120_pnn>
<constant:minecraft:math/octahedralgroup:rot_120_pnp>
<constant:minecraft:math/octahedralgroup:rot_120_ppn>
<constant:minecraft:math/octahedralgroup:rot_120_ppp>
<constant:minecraft:math/octahedralgroup:rot_180_edge_xy_neg>
<constant:minecraft:math/octahedralgroup:rot_180_edge_xy_pos>
<constant:minecraft:math/octahedralgroup:rot_180_edge_xz_neg>
<constant:minecraft:math/octahedralgroup:rot_180_edge_xz_pos>
<constant:minecraft:math/octahedralgroup:rot_180_edge_yz_neg>
<constant:minecraft:math/octahedralgroup:rot_180_edge_yz_pos>
<constant:minecraft:math/octahedralgroup:rot_90_x_neg>
<constant:minecraft:math/octahedralgroup:rot_90_x_pos>
<constant:minecraft:math/octahedralgroup:rot_90_y_neg>
<constant:minecraft:math/octahedralgroup:rot_90_y_pos>
<constant:minecraft:math/octahedralgroup:rot_90_z_neg>
<constant:minecraft:math/octahedralgroup:rot_90_z_pos>
<constant:minecraft:math/octahedralgroup:inversion>
<constant:minecraft:math/octahedralgroup:invert_x>
<constant:minecraft:math/octahedralgroup:invert_y>
<constant:minecraft:math/octahedralgroup:invert_z>
<constant:minecraft:math/octahedralgroup:rot_60_ref_nnn>
<constant:minecraft:math/octahedralgroup:rot_60_ref_nnp>
<constant:minecraft:math/octahedralgroup:rot_60_ref_npn>
<constant:minecraft:math/octahedralgroup:rot_60_ref_npp>
<constant:minecraft:math/octahedralgroup:rot_60_ref_pnn>
<constant:minecraft:math/octahedralgroup:rot_60_ref_pnp>
<constant:minecraft:math/octahedralgroup:rot_60_ref_ppn>
<constant:minecraft:math/octahedralgroup:rot_60_ref_ppp>
<constant:minecraft:math/octahedralgroup:swap_xy>
<constant:minecraft:math/octahedralgroup:swap_yz>
<constant:minecraft:math/octahedralgroup:swap_xz>
<constant:minecraft:math/octahedralgroup:swap_neg_xy>
<constant:minecraft:math/octahedralgroup:swap_neg_yz>
<constant:minecraft:math/octahedralgroup:swap_neg_xz>
<constant:minecraft:math/octahedralgroup:rot_90_ref_x_neg>
<constant:minecraft:math/octahedralgroup:rot_90_ref_x_pos>
<constant:minecraft:math/octahedralgroup:rot_90_ref_y_neg>
<constant:minecraft:math/octahedralgroup:rot_90_ref_y_pos>
<constant:minecraft:math/octahedralgroup:rot_90_ref_z_neg>
<constant:minecraft:math/octahedralgroup:rot_90_ref_z_pos>

Name: compose

Return Type: OctahedralGroup

ZenScript
Copy
OctahedralGroup.compose(group as OctahedralGroup) as OctahedralGroup
参数类型描述
参数
group
类型
OctahedralGroup
描述
No Description Provided

Name: inverse

Return Type: OctahedralGroup

ZenScript
Copy
// OctahedralGroup.inverse() as OctahedralGroup

myOctahedralGroup.inverse();

Name: inverts

Return Type: boolean

ZenScript
Copy
OctahedralGroup.inverts(axis as Axis) as boolean
参数类型描述
参数
axis
类型
Axis
描述
No Description Provided

Name: rotate

Return Type: Direction

ZenScript
Copy
OctahedralGroup.rotate(direction as Direction) as Direction
参数类型描述
参数
direction
类型
Direction
描述
No Description Provided

Name: rotate

Return Type: FrontAndTop

ZenScript
Copy
OctahedralGroup.rotate(frontAndTop as FrontAndTop) as FrontAndTop
参数类型描述
参数
frontAndTop
类型
FrontAndTop
描述
No Description Provided

Name: transformation

Return Type: Matrix3f

ZenScript
Copy
// OctahedralGroup.transformation() as Matrix3f

myOctahedralGroup.transformation();
名称类型可获得可设置描述
名称
transformation
类型
Matrix3f
可获得
true
可设置
false
描述
No Description Provided