Package net.minecraft.core
Enum Class Direction.Axis
- All Implemented Interfaces:
- Serializable,- Comparable<Direction.Axis>,- Constable,- Predicate<Direction>,- StringRepresentable
- Enclosing class:
- Direction
public static enum Direction.Axis
extends Enum<Direction.Axis>
implements StringRepresentable, Predicate<Direction>
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringRepresentable.EnumCodec<Direction.Axis>private final Stringstatic final Direction.Axis[]Fields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Direction.Axisabstract doublechoose(double p_122463_, double p_122464_, double p_122465_) abstract intchoose(int p_122466_, int p_122467_, int p_122468_) getName()getPlane()static Direction.AxisgetRandom(RandomSource p_235689_) booleanbooleanbooleantoString()static Direction.AxisReturns 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
- 
name
 
- 
- 
Constructor Details- 
Axis
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
byName
- 
getName
- 
isVerticalpublic boolean isVertical()
- 
isHorizontalpublic boolean isHorizontal()
- 
toString- Overrides:
- toStringin class- Enum<Direction.Axis>
 
- 
getRandom
- 
test
- 
getPlane
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
- 
choosepublic abstract int choose(int p_122466_, int p_122467_, int p_122468_) 
- 
choosepublic abstract double choose(double p_122463_, double p_122464_, double p_122465_) 
 
-