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;
Undocumented Interfaces Iterable <Direction >
, Predicate <Direction >
, Comparable <Enum >
Plane is an enum with 2 constants. They are accessible like so:
< constant : minecraft:direction/plane:horizontal >
< constant : minecraft:direction/plane:vertical >
// Plane.getRandomAxis(random as RandomSource) as Axis;
< constant : minecraft:direction/plane:horizontal > .getRandomAxis(myRandomSource);
Return Type:
Axis
// Plane.getRandomDirection(random as RandomSource) as Direction;
< constant : minecraft:direction/plane:horizontal > .getRandomDirection(myRandomSource);
Return Type:
Direction
// Plane.iterator as Iterator<Direction>
< constant : minecraft:direction/plane:horizontal > .iterator
Return Type:
Iterator <Direction >
// Plane.iterator() as Iterator<Direction>;
< constant : minecraft:direction/plane:horizontal > .iterator();
Return Type:
Iterator <Direction >
// Plane.test(direction as Direction) as bool;
< constant : minecraft:direction/plane:horizontal > .test(myDirection);
Return Type:
bool