Package net.minecraft.util.math
Enum Class Direction.Type
- All Implemented Interfaces:
Serializable,Comparable<Direction.Type>,Constable,Iterable<Direction>,Predicate<Direction>
- Enclosing class:
Direction
public static enum Direction.Type
extends Enum<Direction.Type>
implements Iterable<Direction>, Predicate<Direction>
- Mappings:
Namespace Name named net/minecraft/util/math/Direction$Typeintermediary net/minecraft/class_2350$class_2353official jc$c
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetShuffled(Random random) iterator()randomAxis(Random random) stream()booleanstatic Direction.TypeReturns the enum constant of this class with the specified name.static Direction.Type[]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 named HORIZONTALLnet/minecraft/util/math/Direction$Type;HORIZONTAL:Lnet/minecraft/util/math/Direction$Type;intermediary field_11062Lnet/minecraft/class_2350$class_2353;field_11062:Lnet/minecraft/class_2350$class_2353;official aLjc$c;a:Ljc$c;
-
VERTICAL
- Mappings:
Namespace Name Mixin selector named VERTICALLnet/minecraft/util/math/Direction$Type;VERTICAL:Lnet/minecraft/util/math/Direction$Type;intermediary field_11064Lnet/minecraft/class_2350$class_2353;field_11064:Lnet/minecraft/class_2350$class_2353;official bLjc$c;b:Ljc$c;
-
-
Field Details
-
facingArray
- Mappings:
Namespace Name Mixin selector named facingArrayLnet/minecraft/util/math/Direction$Type;facingArray:[Lnet/minecraft/util/math/Direction;intermediary field_11061Lnet/minecraft/class_2350$class_2353;field_11061:[Lnet/minecraft/class_2350;official cLjc$c;c:[Ljc;
-
axisArray
- Mappings:
Namespace Name Mixin selector named axisArrayLnet/minecraft/util/math/Direction$Type;axisArray:[Lnet/minecraft/util/math/Direction$Axis;intermediary field_11065Lnet/minecraft/class_2350$class_2353;field_11065:[Lnet/minecraft/class_2350$class_2351;official dLjc$c;d:[Ljc$a;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/Direction$Type;<init>(Ljava/lang/String;I[Lnet/minecraft/util/math/Direction;[Lnet/minecraft/util/math/Direction$Axis;)Vintermediary <init>Lnet/minecraft/class_2350$class_2353;<init>(Ljava/lang/String;I[Lnet/minecraft/class_2350;[Lnet/minecraft/class_2350$class_2351;)Vofficial <init>Ljc$c;<init>(Ljava/lang/String;I[Ljc;[Ljc$a;)V
-
-
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
-
random
- Mappings:
Namespace Name Mixin selector named randomLnet/minecraft/util/math/Direction$Type;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/Direction;intermediary method_10183Lnet/minecraft/class_2350$class_2353;method_10183(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2350;official aLjc$c;a(Lbai;)Ljc;
-
randomAxis
- Mappings:
Namespace Name Mixin selector named randomAxisLnet/minecraft/util/math/Direction$Type;randomAxis(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/Direction$Axis;intermediary method_33465Lnet/minecraft/class_2350$class_2353;method_33465(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2350$class_2351;official bLjc$c;b(Lbai;)Ljc$a;
-
test
- Specified by:
testin interfacePredicate<Direction>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/util/math/Direction$Type;test(Lnet/minecraft/util/math/Direction;)Zintermediary method_10182Lnet/minecraft/class_2350$class_2353;method_10182(Lnet/minecraft/class_2350;)Zofficial aLjc$c;a(Ljc;)Z
-
iterator
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/util/math/Direction$Type;stream()Ljava/util/stream/Stream;intermediary method_29716Lnet/minecraft/class_2350$class_2353;method_29716()Ljava/util/stream/Stream;official aLjc$c;a()Ljava/util/stream/Stream;
-
getShuffled
- Mappings:
Namespace Name Mixin selector named getShuffledLnet/minecraft/util/math/Direction$Type;getShuffled(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;intermediary method_43342Lnet/minecraft/class_2350$class_2353;method_43342(Lnet/minecraft/class_5819;)Ljava/util/List;official cLjc$c;c(Lbai;)Ljava/util/List;
-
getFacingCount
public int getFacingCount()- Mappings:
Namespace Name Mixin selector named getFacingCountLnet/minecraft/util/math/Direction$Type;getFacingCount()Iintermediary method_57092Lnet/minecraft/class_2350$class_2353;method_57092()Iofficial bLjc$c;b()I
-