OctahedralGroup
Link to octahedralgroup
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.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
Enum Constants
Link to enum-constants
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>
Metodi
Link to metodi
Name: compose
Return Type: OctahedralGroup
ZenScript CopyOctahedralGroup.compose(group as OctahedralGroup) as OctahedralGroup
Parametro | Tipo |
---|---|
Parametro gruppo | Tipo OctahedralGroup |
Name: inverse
Return Type: OctahedralGroup
ZenScript Copy// OctahedralGroup.inverse() as OctahedralGroup
myOctahedralGroup.inverse();
Name: inverts
Return Type: boolean
ZenScript CopyOctahedralGroup.inverts(axis as Axis) as boolean
Parametro | Tipo |
---|---|
Parametro axis | Tipo Axis |
Name: rotate
Return Type: FrontAndTop
ZenScript CopyOctahedralGroup.rotate(frontAndTop as FrontAndTop) as FrontAndTop
Parametro | Tipo |
---|---|
Parametro frontAndTop | Tipo FrontAndTop |
Name: transformation
Return Type: Matrix3f
ZenScript Copy// OctahedralGroup.transformation() as Matrix3f
myOctahedralGroup.transformation();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome transformation | Tipo Matrix3f | Ha Getter sì | Ha Setter no |