Since Direction is originally a Java enum, new instances cannot be constructed
new Direction(0, 1, -1, "down", AxisDirection.NEGATIVE, Axis.Y, new Vec3i(0, -1, 0));
new Direction(5, 4, 3, "east", AxisDirection.POSITIVE, Axis.X, new Vec3i(1, 0, 0));
new Direction(2, 3, 2, "north", AxisDirection.NEGATIVE, Axis.Z, new Vec3i(0, 0, -1));
new Direction(3, 2, 0, "south", AxisDirection.POSITIVE, Axis.Z, new Vec3i(0, 0, 1));
new Direction(1, 0, -1, "up", AxisDirection.POSITIVE, Axis.Y, new Vec3i(0, 1, 0));
new Direction(4, 5, 1, "west", AxisDirection.NEGATIVE, Axis.X, new Vec3i(-1, 0, 0));
Same as rotateAround, but just returns the following Direction unchanged instead of throwing a java.lang.IllegalStateException for the Directions incompatible for rotation around the given axis. However, throws java.lang.IncompatibleClassChangeError if the given axis is invalid.
Same as rotateY
Same as getClockWise, but counterclockwise (unexpected?)
Counterclockwise variant of getClockWise / rotateY
Counterclockwise variant of getClockWiseX / rotateX
Counterclockwise variant of getClockWiseZ / rotateZ
value added to the X coordinate of a vector, if the offset with the following Direction is applied to it. Can be 0 or 1.
value added to the Y coordinate of a vector, if the offset with the following Direction is applied to it. Can be 0 or 1.
value added to the Z coordinate of a vector, if the offset with the following Direction is applied to it. Can be 0 or 1.
following Direction's index from 0 to 5, which matches with
the values of the side
field in Callback.ItemUseCoordinates
Direction obtained after rotating the following Direction clockwise around the given axis. Throws java.lang.IllegalStateException if axis is invalid.
Direction obtained after rotating the following
Direction clockwise around the X axis.
Throws java.lang.IllegalStateException for EAST
and WEST
or invalid Directions.
Direction obtained after rotating the following
Direction clockwise around the Y axis.
Throws java.lang.IllegalStateException for UP
and DOWN
or invalid Directions.
Direction obtained after rotating the following
Direction counterclockwise around the Y axis.
Throws java.lang.IllegalStateException for UP
and DOWN
or invalid Directions.
Direction obtained after rotating the following
Direction clockwise around the Z axis.
Throws java.lang.IllegalStateException for NORTH
and SOUTH
or invalid Directions.
Direction with matching axis and axis direction. Throws java.lang.IllegalArgumentException if given axis and axis direction don't have a corresponding Direction instance.
one of six Directions randomly chosen using given java.util.Random object
Generated using TypeDoc
Class containing different useful operations to apply to coordinates set with a side
5.0