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 gc$bintermediary net/minecraft/class_2350$class_2352named 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
Fields Modifier and Type Field Description private Stringdescriptionprivate intoffset -
Constructor Summary
Constructors Modifier Constructor Description privateAxisDirection(int offset, String description) -
Method Summary
Modifier and Type Method Description Direction.AxisDirectiongetOpposite()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 aLgc$b;a:Lgc$b;intermediary field_11056Lnet/minecraft/class_2350$class_2352;field_11056:Lnet/minecraft/class_2350$class_2352;named POSITIVELnet/minecraft/util/math/Direction$AxisDirection;POSITIVE:Lnet/minecraft/util/math/Direction$AxisDirection;
-
NEGATIVE
- Mappings:
Namespace Name Mixin selector official bLgc$b;b:Lgc$b;intermediary field_11060Lnet/minecraft/class_2350$class_2352;field_11060:Lnet/minecraft/class_2350$class_2352;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 cLgc$b;c:Iintermediary field_11059Lnet/minecraft/class_2350$class_2352;field_11059:Inamed offsetLnet/minecraft/util/math/Direction$AxisDirection;offset:I
-
description
- Mappings:
Namespace Name Mixin selector official dLgc$b;d:Ljava/lang/String;intermediary field_11057Lnet/minecraft/class_2350$class_2352;field_11057:Ljava/lang/String;named descriptionLnet/minecraft/util/math/Direction$AxisDirection;description:Ljava/lang/String;
-
-
Constructor Details
-
AxisDirection
- Mappings:
Namespace Name Mixin selector official <init>Lgc$b;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2350$class_2352;<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 aLgc$b;a()Iintermediary method_10181Lnet/minecraft/class_2350$class_2352;method_10181()Inamed offsetLnet/minecraft/util/math/Direction$AxisDirection;offset()I
-
toString
- Overrides:
toStringin classEnum<Direction.AxisDirection>- Mappings:
Namespace Name Mixin selector official toStringLgc$b;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_2350$class_2352;toString()Ljava/lang/String;named toStringLnet/minecraft/util/math/Direction$AxisDirection;toString()Ljava/lang/String;
-
getOpposite
- Mappings:
Namespace Name Mixin selector official cLgc$b;c()Lgc$b;intermediary method_26424Lnet/minecraft/class_2350$class_2352;method_26424()Lnet/minecraft/class_2350$class_2352;named getOppositeLnet/minecraft/util/math/Direction$AxisDirection;getOpposite()Lnet/minecraft/util/math/Direction$AxisDirection;
-