Package net.minecraft.util
Enum Class Direction.Axis
- All Implemented Interfaces:
Serializable
,Comparable<Direction.Axis>
,Constable
,Predicate<Direction>
,IStringSerializable
- Enclosing class:
- Direction
public static enum Direction.Axis
extends Enum<Direction.Axis>
implements IStringSerializable, Predicate<Direction>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<String,
Direction.Axis> static final com.mojang.serialization.Codec<Direction.Axis>
private final String
private static final Direction.Axis[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Direction.Axis
abstract double
choose
(double p_196051_1_, double p_196051_3_, double p_196051_5_) abstract int
choose
(int p_196052_1_, int p_196052_2_, int p_196052_3_) getName()
getPlane()
static Direction.Axis
boolean
boolean
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
-
Y
-
Z
-
-
Field Details
-
VALUES
-
CODEC
-
BY_NAME
-
name
-
-
Constructor Details
-
Axis
-
-
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
-
byName
-
getName
-
isVertical
public boolean isVertical() -
isHorizontal
public boolean isHorizontal() -
toString
- Overrides:
toString
in classEnum<Direction.Axis>
-
getRandom
-
test
-
getPlane
-
getSerializedName
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
choose
public abstract int choose(int p_196052_1_, int p_196052_2_, int p_196052_3_) -
choose
public abstract double choose(double p_196051_1_, double p_196051_3_, double p_196051_5_)
-