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