Enum Class Direction.AxisDirection

java.lang.Object
java.lang.Enum<Direction.AxisDirection>
net.minecraft.util.math.Direction.AxisDirection
All Implemented Interfaces:
Serializable, Comparable<Direction.AxisDirection>, Constable
Enclosing class:
Direction

public static enum Direction.AxisDirection extends Enum<Direction.AxisDirection>
Mappings:
Namespace Name
official gm$b
intermediary net/minecraft/class_2350$class_2352
named net/minecraft/util/math/Direction$AxisDirection
  • Enum Constant Details

    • POSITIVE

      public static final Direction.AxisDirection POSITIVE
      Mappings:
      Namespace Name Mixin selector
      official a Lgm$b;a:Lgm$b;
      intermediary field_11056 Lnet/minecraft/class_2350$class_2352;field_11056:Lnet/minecraft/class_2350$class_2352;
      named POSITIVE Lnet/minecraft/util/math/Direction$AxisDirection;POSITIVE:Lnet/minecraft/util/math/Direction$AxisDirection;
    • NEGATIVE

      public static final Direction.AxisDirection NEGATIVE
      Mappings:
      Namespace Name Mixin selector
      official b Lgm$b;b:Lgm$b;
      intermediary field_11060 Lnet/minecraft/class_2350$class_2352;field_11060:Lnet/minecraft/class_2350$class_2352;
      named NEGATIVE Lnet/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 c Lgm$b;c:I
      intermediary field_11059 Lnet/minecraft/class_2350$class_2352;field_11059:I
      named offset Lnet/minecraft/util/math/Direction$AxisDirection;offset:I
    • description

      private final String description
      Mappings:
      Namespace Name Mixin selector
      official d Lgm$b;d:Ljava/lang/String;
      intermediary field_11057 Lnet/minecraft/class_2350$class_2352;field_11057:Ljava/lang/String;
      named description Lnet/minecraft/util/math/Direction$AxisDirection;description:Ljava/lang/String;
  • Constructor Details

    • AxisDirection

      private AxisDirection(int offset, String description)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgm$b;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2350$class_2352;<init>(Ljava/lang/String;IILjava/lang/String;)V
      named <init> Lnet/minecraft/util/math/Direction$AxisDirection;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static Direction.AxisDirection[] 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

      public static Direction.AxisDirection valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • offset

      public int offset()
      Mappings:
      Namespace Name Mixin selector
      official a Lgm$b;a()I
      intermediary method_10181 Lnet/minecraft/class_2350$class_2352;method_10181()I
      named offset Lnet/minecraft/util/math/Direction$AxisDirection;offset()I
    • getDescription

      public String getDescription()
      Mappings:
      Namespace Name Mixin selector
      official b Lgm$b;b()Ljava/lang/String;
      intermediary method_35839 Lnet/minecraft/class_2350$class_2352;method_35839()Ljava/lang/String;
      named getDescription Lnet/minecraft/util/math/Direction$AxisDirection;getDescription()Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Direction.AxisDirection>
    • getOpposite

      public Direction.AxisDirection getOpposite()
      Mappings:
      Namespace Name Mixin selector
      official c Lgm$b;c()Lgm$b;
      intermediary method_26424 Lnet/minecraft/class_2350$class_2352;method_26424()Lnet/minecraft/class_2350$class_2352;
      named getOpposite Lnet/minecraft/util/math/Direction$AxisDirection;getOpposite()Lnet/minecraft/util/math/Direction$AxisDirection;