Package net.minecraft.util.math
Enum Class Direction.DirectionType
- All Implemented Interfaces:
Serializable,Comparable<Direction.DirectionType>,Constable,Iterable<Direction>,Predicate<Direction>
- Enclosing class:
- Direction
public static enum Direction.DirectionType
extends Enum<Direction.DirectionType>
implements Iterable<Direction>, Predicate<Direction>
- Mappings:
Namespace Name official eq$cintermediary net/minecraft/class_1354$class_2560named net/minecraft/util/math/Direction$DirectionType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDirectionType(Direction[] direction, Direction.Axis[] axis) -
Method Summary
Modifier and TypeMethodDescriptiongetRandomDirection(Random random) iterator()booleanstatic Direction.DirectionTypeReturns the enum constant of this class with the specified name.static Direction.DirectionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Enum Constant Details
-
HORIZONTAL
- Mappings:
Namespace Name Mixin selector official aLeq$c;a:Leq$c;intermediary field_11477Lnet/minecraft/class_1354$class_2560;field_11477:Lnet/minecraft/class_1354$class_2560;named HORIZONTALLnet/minecraft/util/math/Direction$DirectionType;HORIZONTAL:Lnet/minecraft/util/math/Direction$DirectionType;
-
VERTICAL
- Mappings:
Namespace Name Mixin selector official bLeq$c;b:Leq$c;intermediary field_21290Lnet/minecraft/class_1354$class_2560;field_21290:Lnet/minecraft/class_1354$class_2560;named VERTICALLnet/minecraft/util/math/Direction$DirectionType;VERTICAL:Lnet/minecraft/util/math/Direction$DirectionType;
-
-
Field Details
-
field_21291
- Mappings:
Namespace Name Mixin selector official cLeq$c;c:[Leq;intermediary field_21291Lnet/minecraft/class_1354$class_2560;field_21291:[Lnet/minecraft/class_1354;named field_21291Lnet/minecraft/util/math/Direction$DirectionType;field_21291:[Lnet/minecraft/util/math/Direction;
-
field_21292
- Mappings:
Namespace Name Mixin selector official dLeq$c;d:[Leq$a;intermediary field_21292Lnet/minecraft/class_1354$class_2560;field_21292:[Lnet/minecraft/class_1354$class_2558;named field_21292Lnet/minecraft/util/math/Direction$DirectionType;field_21292:[Lnet/minecraft/util/math/Direction$Axis;
-
-
Constructor Details
-
DirectionType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getRandomDirection
- Mappings:
Namespace Name Mixin selector official aLeq$c;a(Ljava/util/Random;)Leq;intermediary method_10551Lnet/minecraft/class_1354$class_2560;method_10551(Ljava/util/Random;)Lnet/minecraft/class_1354;named getRandomDirectionLnet/minecraft/util/math/Direction$DirectionType;getRandomDirection(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;
-
test
- Specified by:
testin interfacePredicate<Direction>- Mappings:
Namespace Name Mixin selector official aLeq$c;a(Leq;)Zintermediary method_10550Lnet/minecraft/class_1354$class_2560;method_10550(Lnet/minecraft/class_1354;)Znamed testLnet/minecraft/util/math/Direction$DirectionType;test(Lnet/minecraft/util/math/Direction;)Z
-
iterator
- Specified by:
iteratorin interfaceIterable<Direction>- Mappings:
Namespace Name Mixin selector official iteratorLeq$c;iterator()Ljava/util/Iterator;intermediary iteratorLnet/minecraft/class_1354$class_2560;iterator()Ljava/util/Iterator;named iteratorLnet/minecraft/util/math/Direction$DirectionType;iterator()Ljava/util/Iterator;
-