Package net.minecraft.util.math
Enum Class Direction.Axis
- All Implemented Interfaces:
Serializable
,Comparable<Direction.Axis>
,Constable
,Predicate<Direction>
,StringIdentifiable
- Enclosing class:
Direction
public static enum Direction.Axis
extends Enum<Direction.Axis>
implements StringIdentifiable, Predicate<Direction>
- Mappings:
Namespace Name named net/minecraft/util/math/Direction$Axis
intermediary net/minecraft/class_2350$class_2351
official ji$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec
<Direction.Axis> private final String
static final Direction.Axis[]
Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.abstract double
choose
(double x, double y, double z) abstract int
choose
(int x, int y, int z) static @Nullable Direction.Axis
getName()
getType()
boolean
boolean
static Direction.Axis
pickRandomAxis
(Random random) boolean
toString()
static Direction.Axis
Returns the enum constant of this class with the specified name.static Direction.Axis[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
X
- Mappings:
Namespace Name Mixin selector named X
Lnet/minecraft/util/math/Direction$Axis;X:Lnet/minecraft/util/math/Direction$Axis;
intermediary field_11048
Lnet/minecraft/class_2350$class_2351;field_11048:Lnet/minecraft/class_2350$class_2351;
official a
Lji$a;a:Lji$a;
-
Y
- Mappings:
Namespace Name Mixin selector named Y
Lnet/minecraft/util/math/Direction$Axis;Y:Lnet/minecraft/util/math/Direction$Axis;
intermediary field_11052
Lnet/minecraft/class_2350$class_2351;field_11052:Lnet/minecraft/class_2350$class_2351;
official b
Lji$a;b:Lji$a;
-
Z
- Mappings:
Namespace Name Mixin selector named Z
Lnet/minecraft/util/math/Direction$Axis;Z:Lnet/minecraft/util/math/Direction$Axis;
intermediary field_11051
Lnet/minecraft/class_2350$class_2351;field_11051:Lnet/minecraft/class_2350$class_2351;
official c
Lji$a;c:Lji$a;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector named VALUES
Lnet/minecraft/util/math/Direction$Axis;VALUES:[Lnet/minecraft/util/math/Direction$Axis;
intermediary field_23780
Lnet/minecraft/class_2350$class_2351;field_23780:[Lnet/minecraft/class_2350$class_2351;
official d
Lji$a;d:[Lji$a;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/util/math/Direction$Axis;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
intermediary field_25065
Lnet/minecraft/class_2350$class_2351;field_25065:Lnet/minecraft/class_3542$class_7292;
official e
Lji$a;e:Lazk$a;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/util/math/Direction$Axis;name:Ljava/lang/String;
intermediary field_11053
Lnet/minecraft/class_2350$class_2351;field_11053:Ljava/lang/String;
official f
Lji$a;f:Ljava/lang/String;
-
-
Constructor Details
-
Axis
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/math/Direction$Axis;<init>(Ljava/lang/String;ILjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2350$class_2351;<init>(Ljava/lang/String;ILjava/lang/String;)V
official <init>
Lji$a;<init>(Ljava/lang/String;ILjava/lang/String;)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
-
fromName
- Mappings:
Namespace Name Mixin selector named fromName
Lnet/minecraft/util/math/Direction$Axis;fromName(Ljava/lang/String;)Lnet/minecraft/util/math/Direction$Axis;
intermediary method_10177
Lnet/minecraft/class_2350$class_2351;method_10177(Ljava/lang/String;)Lnet/minecraft/class_2350$class_2351;
official a
Lji$a;a(Ljava/lang/String;)Lji$a;
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/util/math/Direction$Axis;getName()Ljava/lang/String;
intermediary method_10174
Lnet/minecraft/class_2350$class_2351;method_10174()Ljava/lang/String;
official a
Lji$a;a()Ljava/lang/String;
-
isVertical
public boolean isVertical()- Mappings:
Namespace Name Mixin selector named isVertical
Lnet/minecraft/util/math/Direction$Axis;isVertical()Z
intermediary method_10178
Lnet/minecraft/class_2350$class_2351;method_10178()Z
official b
Lji$a;b()Z
-
isHorizontal
public boolean isHorizontal()- Mappings:
Namespace Name Mixin selector named isHorizontal
Lnet/minecraft/util/math/Direction$Axis;isHorizontal()Z
intermediary method_10179
Lnet/minecraft/class_2350$class_2351;method_10179()Z
official d
Lji$a;d()Z
-
toString
- Overrides:
toString
in classEnum<Direction.Axis>
-
pickRandomAxis
- Mappings:
Namespace Name Mixin selector named pickRandomAxis
Lnet/minecraft/util/math/Direction$Axis;pickRandomAxis(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/Direction$Axis;
intermediary method_16699
Lnet/minecraft/class_2350$class_2351;method_16699(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2350$class_2351;
official a
Lji$a;a(Layw;)Lji$a;
-
test
- Specified by:
test
in interfacePredicate<Direction>
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/util/math/Direction$Axis;test(Lnet/minecraft/util/math/Direction;)Z
intermediary method_10176
Lnet/minecraft/class_2350$class_2351;method_10176(Lnet/minecraft/class_2350;)Z
official a
Lji$a;a(Lji;)Z
-
getType
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/util/math/Direction$Axis;getType()Lnet/minecraft/util/math/Direction$Type;
intermediary method_10180
Lnet/minecraft/class_2350$class_2351;method_10180()Lnet/minecraft/class_2350$class_2353;
official e
Lji$a;e()Lji$c;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lazk;c()Ljava/lang/String;
-
choose
public abstract int choose(int x, int y, int z) - Mappings:
Namespace Name Mixin selector named choose
Lnet/minecraft/util/math/Direction$Axis;choose(III)I
intermediary method_10173
Lnet/minecraft/class_2350$class_2351;method_10173(III)I
official a
Lji$a;a(III)I
-
choose
public abstract double choose(double x, double y, double z) - Mappings:
Namespace Name Mixin selector named choose
Lnet/minecraft/util/math/Direction$Axis;choose(DDD)D
intermediary method_10172
Lnet/minecraft/class_2350$class_2351;method_10172(DDD)D
official a
Lji$a;a(DDD)D
-