Package net.minecraft.util.math
Enum Direction.AxisDirection
- All Implemented Interfaces:
Serializable,Comparable<Direction.AxisDirection>,java.lang.constant.Constable
- Enclosing class:
- Direction
public static enum Direction.AxisDirection extends Enum<Direction.AxisDirection>
- Mappings:
Namespace Name official cq$bintermediary net/minecraft/class_1383$class_1385named net/minecraft/util/math/Direction$AxisDirection
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateAxisDirection(int offset, String name) -
Method Summary
Modifier and Type Method Description intoffset()StringtoString()static Direction.AxisDirectionvalueOf(String name)Returns the enum constant of this type with the specified name.static Direction.AxisDirection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POSITIVE
- Mappings:
Namespace Name Mixin selector official aLcq$b;a:Lcq$b;intermediary field_5825Lnet/minecraft/class_1383$class_1385;field_5825:Lnet/minecraft/class_1383$class_1385;named POSITIVELnet/minecraft/util/math/Direction$AxisDirection;POSITIVE:Lnet/minecraft/util/math/Direction$AxisDirection;
-
NEGATIVE
- Mappings:
Namespace Name Mixin selector official bLcq$b;b:Lcq$b;intermediary field_5826Lnet/minecraft/class_1383$class_1385;field_5826:Lnet/minecraft/class_1383$class_1385;named NEGATIVELnet/minecraft/util/math/Direction$AxisDirection;NEGATIVE:Lnet/minecraft/util/math/Direction$AxisDirection;
-
-
Field Details
-
offset
private final int offset- Mappings:
Namespace Name Mixin selector official cLcq$b;c:Iintermediary field_5827Lnet/minecraft/class_1383$class_1385;field_5827:Inamed offsetLnet/minecraft/util/math/Direction$AxisDirection;offset:I
-
name
- Mappings:
Namespace Name Mixin selector official dLcq$b;d:Ljava/lang/String;intermediary field_5828Lnet/minecraft/class_1383$class_1385;field_5828:Ljava/lang/String;named nameLnet/minecraft/util/math/Direction$AxisDirection;name:Ljava/lang/String;
-
-
Constructor Details
-
AxisDirection
- Mappings:
Namespace Name Mixin selector official <init>Lcq$b;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1383$class_1385;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/util/math/Direction$AxisDirection;<init>(Ljava/lang/String;IILjava/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
-
offset
public int offset()- Mappings:
Namespace Name Mixin selector official aLcq$b;a()Iintermediary method_4939Lnet/minecraft/class_1383$class_1385;method_4939()Inamed offsetLnet/minecraft/util/math/Direction$AxisDirection;offset()I
-
toString
- Overrides:
toStringin classEnum<Direction.AxisDirection>- Mappings:
Namespace Name Mixin selector official toStringLcq$b;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_1383$class_1385;toString()Ljava/lang/String;named toStringLnet/minecraft/util/math/Direction$AxisDirection;toString()Ljava/lang/String;
-