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