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.
import crafttweaker . api.util.math . Rotation;
Rotation
implements the following interfaces:
StringRepresentable
Undocumented Interfaces Comparable <Enum >
Rotation is an enum with 4 constants. They are accessible like so:
// Rotation.CLOCKWISE_180
< constant : minecraft:direction/rotation:clockwise_180 >
< constant : minecraft:direction/rotation:clockwise_90 >
// Rotation.COUNTERCLOCKWISE_90
< constant : minecraft:direction/rotation:counterclockwise_90 >
< constant : minecraft:direction/rotation:none >
// Rotation.getRotated(rotation as Rotation) as Rotation;
< constant : minecraft:direction/rotation:clockwise_180 > .getRotated(myRotation);
Return Type:
Rotation
// Rotation.rotate(direction as Direction) as Direction;
< constant : minecraft:direction/rotation:clockwise_180 > .rotate(myDirection);
Return Type:
Direction
// Rotation.rotate(rotation as int, positionCount as int) as int;
< constant : minecraft:direction/rotation:clockwise_180 > .rotate(myInt, myInt);
Parameters:
rotation: int
Type: int
positionCount: int
Type: int
Return Type:
int
// Rotation.rotation() as OctahedralGroup;
< constant : minecraft:direction/rotation:clockwise_180 > .rotation();
Return Type:
OctahedralGroup
Gets the serialized name. // Rotation.serializedName as string
< constant : minecraft:direction/rotation:clockwise_180 > .serializedName
Return Type:
string
Gets the serialized name. Returns : the serialized name.
// Rotation.serializedName() as string;
< constant : minecraft:direction/rotation:clockwise_180 > .serializedName();
Return Type:
string