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 . Direction;
Direction
implements the following interfaces:
StringRepresentable
Undocumented Interfaces Comparable <Enum >
Direction is an enum with 6 constants. They are accessible like so:
< constant : minecraft:direction:down >
< constant : minecraft:direction:east >
< constant : minecraft:direction:north >
< constant : minecraft:direction:south >
< constant : minecraft:direction:up >
< constant : minecraft:direction:west >
// Direction.axis as Axis
< constant : minecraft:direction:down > .axis
Return Type:
Axis
// Direction.axis() as Axis;
< constant : minecraft:direction:down > .axis();
Return Type:
Axis
// Direction.axisDirection as AxisDirection
< constant : minecraft:direction:down > .axisDirection
Return Type:
AxisDirection
// Direction.axisDirection() as AxisDirection;
< constant : minecraft:direction:down > .axisDirection();
Return Type:
AxisDirection
// Direction.clockWise as Direction
< constant : minecraft:direction:down > .clockWise
Return Type:
Direction
// Direction.clockWise() as Direction;
< constant : minecraft:direction:down > .clockWise();
Return Type:
Direction
// Direction.counterClockWise as Direction
< constant : minecraft:direction:down > .counterClockWise
Return Type:
Direction
// Direction.counterClockWise() as Direction;
< constant : minecraft:direction:down > .counterClockWise();
Return Type:
Direction
// Direction.getClockWise(axis as Axis) as Direction;
< constant : minecraft:direction:down > .getClockWise(myAxis);
Return Type:
Direction
// Direction.getCounterClockWise(axis as Axis) as Direction;
< constant : minecraft:direction:down > .getCounterClockWise(myAxis);
Return Type:
Direction
// Direction.getName() as string;
< constant : minecraft:direction:down > .getName();
Return Type:
string
// Direction.isFacingAngle(degrees as float) as bool;
< constant : minecraft:direction:down > .isFacingAngle(myFloat);
Parameters:
degrees: float
Type: float
Return Type:
bool
// Direction.normal as Vec3i
< constant : minecraft:direction:down > .normal
Return Type:
Vec3i
// Direction.normal() as Vec3i;
< constant : minecraft:direction:down > .normal();
Return Type:
Vec3i
// Direction.opposite as Direction
< constant : minecraft:direction:down > .opposite
Return Type:
Direction
// Direction.opposite() as Direction;
< constant : minecraft:direction:down > .opposite();
Return Type:
Direction
// Direction.rotation as Quaternionf
< constant : minecraft:direction:down > .rotation
Return Type:
Quaternionf
// Direction.rotation() as Quaternionf;
< constant : minecraft:direction:down > .rotation();
Return Type:
Quaternionf
Gets the serialized name. // Direction.serializedName as string
< constant : minecraft:direction:down > .serializedName
Return Type:
string
Gets the serialized name. Returns : the serialized name.
// Direction.serializedName() as string;
< constant : minecraft:direction:down > .serializedName();
Return Type:
string
// Direction.step as Vector3f
< constant : minecraft:direction:down > .step
Return Type:
Vector3f
// Direction.step() as Vector3f;
< constant : minecraft:direction:down > .step();
Return Type:
Vector3f
// Direction.stepX as int
< constant : minecraft:direction:down > .stepX
Return Type:
int
// Direction.stepX() as int;
< constant : minecraft:direction:down > .stepX();
Return Type:
int
// Direction.stepY as int
< constant : minecraft:direction:down > .stepY
Return Type:
int
// Direction.stepY() as int;
< constant : minecraft:direction:down > .stepY();
Return Type:
int
// Direction.stepZ as int
< constant : minecraft:direction:down > .stepZ
Return Type:
int
// Direction.stepZ() as int;
< constant : minecraft:direction:down > .stepZ();
Return Type:
int
// Direction.toYRot as float
< constant : minecraft:direction:down > .toYRot
Return Type:
float
// Direction.toYRot() as float;
< constant : minecraft:direction:down > .toYRot();
Return Type:
float