Package net.minecraft.util.math
Enum Direction.Type
- All Implemented Interfaces:
Serializable
,Comparable<Direction.Type>
,java.lang.constant.Constable
,Iterable<Direction>
,Predicate<Direction>
- Enclosing class:
- Direction
public static enum Direction.Type extends Enum<Direction.Type> implements Iterable<Direction>, Predicate<Direction>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description HORIZONTAL
VERTICAL
-
Field Summary
Fields Modifier and Type Field Description private Direction.Axis[]
axisArray
private Direction[]
facingArray
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(Direction[] facingArray, Direction.Axis[] axisArray)
-
Method Summary
Modifier and Type Method Description Iterator<Direction>
iterator()
Direction
random(Random random)
Stream<Direction>
stream()
boolean
test(Direction direction)
static Direction.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Direction.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Enum Constant Details
-
HORIZONTAL
-
VERTICAL
-
-
Field Details
-
facingArray
-
axisArray
-
-
Constructor Details
-
Type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
random
-
test
-
iterator
-
stream
-