Plane
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.direction.Plane;
Implements
Enum Constants
Plane is an enum with 2 constants. They are accessible like so:
// Plane.HORIZONTAL<constant:minecraft:direction/plane:horizontal>// Plane.VERTICAL<constant:minecraft:direction/plane:vertical>
Members
getRandomAxis(random as RandomSource) as Axis
<constant:minecraft:direction/plane:horizontal>.getRandomAxis(myRandomSource);
Parameters:
random: RandomSource
Type: RandomSource
Return Type:
Axis
getRandomDirection(random as RandomSource) as Direction
<constant:minecraft:direction/plane:horizontal>.getRandomDirection(myRandomSource);
Parameters:
random: RandomSource
Type: RandomSource
Return Type:
Direction
Getter
iterator() as Iterator<Direction>