Package net.minecraft.util
Enum Direction.Plane
- java.lang.Object
-
- java.lang.Enum<Direction.Plane>
-
- net.minecraft.util.Direction.Plane
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Direction.Plane>
,java.lang.Iterable<Direction>
,java.util.function.Predicate<Direction>
- Enclosing class:
- Direction
public static enum Direction.Plane extends java.lang.Enum<Direction.Plane> implements java.lang.Iterable<Direction>, java.util.function.Predicate<Direction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HORIZONTAL
VERTICAL
-
Field Summary
Fields Modifier and Type Field Description private Direction.Axis[]
axis
private Direction[]
faces
-
Constructor Summary
Constructors Modifier Constructor Description private
Plane(Direction[] p_i49393_3_, Direction.Axis[] p_i49393_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Direction.Axis
getRandomAxis(java.util.Random p_244803_1_)
Direction
getRandomDirection(java.util.Random p_179518_1_)
java.util.Iterator<Direction>
iterator()
java.util.stream.Stream<Direction>
stream()
boolean
test(Direction p_test_1_)
static Direction.Plane
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Direction.Plane[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HORIZONTAL
public static final Direction.Plane HORIZONTAL
-
VERTICAL
public static final Direction.Plane VERTICAL
-
-
Field Detail
-
faces
private final Direction[] faces
-
axis
private final Direction.Axis[] axis
-
-
Constructor Detail
-
Plane
private Plane(Direction[] p_i49393_3_, Direction.Axis[] p_i49393_4_)
-
-
Method Detail
-
values
public static Direction.Plane[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Direction.Plane c : Direction.Plane.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Direction.Plane valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getRandomDirection
public Direction getRandomDirection(java.util.Random p_179518_1_)
-
getRandomAxis
public Direction.Axis getRandomAxis(java.util.Random p_244803_1_)
-
test
public boolean test(@Nullable Direction p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<Direction>
-
iterator
public java.util.Iterator<Direction> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Direction>
-
stream
public java.util.stream.Stream<Direction> stream()
-
-