Home Commands Examples Getting Started With Scripts Global Keywords
Generic Recipe Manipulation

AxisAlignedRotation

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import mods.botanypotstweaker.displaystate.AxisAlignedRotation;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

AxisAlignedRotation is an enum with 12 constants. They are accessible like so:

script.zs
// AxisAlignedRotation.X_0
<constant:botanypots:axis_aligned_rotation:x_0>
// AxisAlignedRotation.X_180
<constant:botanypots:axis_aligned_rotation:x_180>
// AxisAlignedRotation.X_270
<constant:botanypots:axis_aligned_rotation:x_270>
// AxisAlignedRotation.X_90
<constant:botanypots:axis_aligned_rotation:x_90>
// AxisAlignedRotation.Y_0
<constant:botanypots:axis_aligned_rotation:y_0>
// AxisAlignedRotation.Y_180
<constant:botanypots:axis_aligned_rotation:y_180>
// AxisAlignedRotation.Y_270
<constant:botanypots:axis_aligned_rotation:y_270>
// AxisAlignedRotation.Y_90
<constant:botanypots:axis_aligned_rotation:y_90>
// AxisAlignedRotation.Z_0
<constant:botanypots:axis_aligned_rotation:z_0>
// AxisAlignedRotation.Z_180
<constant:botanypots:axis_aligned_rotation:z_180>
// AxisAlignedRotation.Z_270
<constant:botanypots:axis_aligned_rotation:z_270>
// AxisAlignedRotation.Z_90
<constant:botanypots:axis_aligned_rotation:z_90>

Members

Getter
A predetermined offset that will realign the render when translated.
script.zs
// AxisAlignedRotation.offset as Vector3f
<constant:botanypots:axis_aligned_rotation:x_0>.offset

Return Type: Vector3f

Getter
A Quaternion that contains the rotational information. In this case it represents a 0, 90, 180, or 270-degree rotation along the X, Y, or Z axis.
script.zs
// AxisAlignedRotation.rotation as Quaternionf
<constant:botanypots:axis_aligned_rotation:x_0>.rotation

Return Type: Quaternionf