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

Interfacce Implementate

Link to interfacce-implementate

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
ParametroTipo
Parametro
gruppo
Tipo
OctahedralGroup

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
ParametroTipo
Parametro
axis
Tipo
Axis

Name: rotate

Return Type: Direction

ZenScript
Copy
OctahedralGroup.rotate(direction as Direction) as Direction
ParametroTipo
Parametro
direction
Tipo
Direction

Name: rotate

Return Type: FrontAndTop

ZenScript
Copy
OctahedralGroup.rotate(frontAndTop as FrontAndTop) as FrontAndTop
ParametroTipo
Parametro
frontAndTop
Tipo
FrontAndTop

Name: transformation

Return Type: Matrix3f

ZenScript
Copy
// OctahedralGroup.transformation() as Matrix3f

myOctahedralGroup.transformation();
NomeTipoHa GetterHa Setter
Nome
transformation
Tipo
Matrix3f
Ha Getter
Ha Setter
no