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>
- Mappings:
Namespace Name official gc$c
intermediary net/minecraft/class_2350$class_2353
named net/minecraft/util/math/Direction$Type
-
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)
Direction.Axis
randomAxis(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
- Mappings:
Namespace Name Mixin selector official a
Lgc$c;a:Lgc$c;
intermediary field_11062
Lnet/minecraft/class_2350$class_2353;field_11062:Lnet/minecraft/class_2350$class_2353;
named HORIZONTAL
Lnet/minecraft/util/math/Direction$Type;HORIZONTAL:Lnet/minecraft/util/math/Direction$Type;
-
VERTICAL
- Mappings:
Namespace Name Mixin selector official b
Lgc$c;b:Lgc$c;
intermediary field_11064
Lnet/minecraft/class_2350$class_2353;field_11064:Lnet/minecraft/class_2350$class_2353;
named VERTICAL
Lnet/minecraft/util/math/Direction$Type;VERTICAL:Lnet/minecraft/util/math/Direction$Type;
-
-
Field Details
-
facingArray
- Mappings:
Namespace Name Mixin selector official c
Lgc$c;c:[Lgc;
intermediary field_11061
Lnet/minecraft/class_2350$class_2353;field_11061:[Lnet/minecraft/class_2350;
named facingArray
Lnet/minecraft/util/math/Direction$Type;facingArray:[Lnet/minecraft/util/math/Direction;
-
axisArray
- Mappings:
Namespace Name Mixin selector official d
Lgc$c;d:[Lgc$a;
intermediary field_11065
Lnet/minecraft/class_2350$class_2353;field_11065:[Lnet/minecraft/class_2350$class_2351;
named axisArray
Lnet/minecraft/util/math/Direction$Type;axisArray:[Lnet/minecraft/util/math/Direction$Axis;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>
Lgc$c;<init>(Ljava/lang/String;I[Lgc;[Lgc$a;)V
intermediary <init>
Lnet/minecraft/class_2350$class_2353;<init>(Ljava/lang/String;I[Lnet/minecraft/class_2350;[Lnet/minecraft/class_2350$class_2351;)V
named <init>
Lnet/minecraft/util/math/Direction$Type;<init>(Ljava/lang/String;I[Lnet/minecraft/util/math/Direction;[Lnet/minecraft/util/math/Direction$Axis;)V
-
-
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
- Mappings:
Namespace Name Mixin selector official a
Lgc$c;a(Ljava/util/Random;)Lgc;
intermediary method_10183
Lnet/minecraft/class_2350$class_2353;method_10183(Ljava/util/Random;)Lnet/minecraft/class_2350;
named random
Lnet/minecraft/util/math/Direction$Type;random(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;
-
randomAxis
- Mappings:
Namespace Name Mixin selector official b
Lgc$c;b(Ljava/util/Random;)Lgc$a;
intermediary method_33465
Lnet/minecraft/class_2350$class_2353;method_33465(Ljava/util/Random;)Lnet/minecraft/class_2350$class_2351;
named randomAxis
Lnet/minecraft/util/math/Direction$Type;randomAxis(Ljava/util/Random;)Lnet/minecraft/util/math/Direction$Axis;
-
test
- Specified by:
test
in interfacePredicate<Direction>
- Mappings:
Namespace Name Mixin selector official a
Lgc$c;a(Lgc;)Z
intermediary method_10182
Lnet/minecraft/class_2350$class_2353;method_10182(Lnet/minecraft/class_2350;)Z
named test
Lnet/minecraft/util/math/Direction$Type;test(Lnet/minecraft/util/math/Direction;)Z
-
iterator
- Specified by:
iterator
in interfaceIterable<Direction>
- Mappings:
Namespace Name Mixin selector official iterator
Lgc$c;iterator()Ljava/util/Iterator;
intermediary iterator
Lnet/minecraft/class_2350$class_2353;iterator()Ljava/util/Iterator;
named iterator
Lnet/minecraft/util/math/Direction$Type;iterator()Ljava/util/Iterator;
-
stream
- Mappings:
Namespace Name Mixin selector official a
Lgc$c;a()Ljava/util/stream/Stream;
intermediary method_29716
Lnet/minecraft/class_2350$class_2353;method_29716()Ljava/util/stream/Stream;
named stream
Lnet/minecraft/util/math/Direction$Type;stream()Ljava/util/stream/Stream;
-