Enum Class Direction.Axis

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

public static enum Direction.Axis extends Enum<Direction.Axis> implements StringIdentifiable, Predicate<Direction>
Mappings:
Namespace Name
official gv$a
intermediary net/minecraft/class_2350$class_2351
named net/minecraft/util/math/Direction$Axis
  • Enum Constant Details

    • X

      public static final Direction.Axis X
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a:Lgv$a;
      intermediary field_11048 Lnet/minecraft/class_2350$class_2351;field_11048:Lnet/minecraft/class_2350$class_2351;
      named X Lnet/minecraft/util/math/Direction$Axis;X:Lnet/minecraft/util/math/Direction$Axis;
    • Y

      public static final Direction.Axis Y
      Mappings:
      Namespace Name Mixin selector
      official b Lgv$a;b:Lgv$a;
      intermediary field_11052 Lnet/minecraft/class_2350$class_2351;field_11052:Lnet/minecraft/class_2350$class_2351;
      named Y Lnet/minecraft/util/math/Direction$Axis;Y:Lnet/minecraft/util/math/Direction$Axis;
    • Z

      public static final Direction.Axis Z
      Mappings:
      Namespace Name Mixin selector
      official c Lgv$a;c:Lgv$a;
      intermediary field_11051 Lnet/minecraft/class_2350$class_2351;field_11051:Lnet/minecraft/class_2350$class_2351;
      named Z Lnet/minecraft/util/math/Direction$Axis;Z:Lnet/minecraft/util/math/Direction$Axis;
  • Field Details

    • VALUES

      public static final Direction.Axis[] VALUES
      Mappings:
      Namespace Name Mixin selector
      official d Lgv$a;d:[Lgv$a;
      intermediary field_23780 Lnet/minecraft/class_2350$class_2351;field_23780:[Lnet/minecraft/class_2350$class_2351;
      named VALUES Lnet/minecraft/util/math/Direction$Axis;VALUES:[Lnet/minecraft/util/math/Direction$Axis;
    • CODEC

      public static final StringIdentifiable.Codec<Direction.Axis> CODEC
      Mappings:
      Namespace Name Mixin selector
      official e Lgv$a;e:Laor$a;
      intermediary field_25065 Lnet/minecraft/class_2350$class_2351;field_25065:Lnet/minecraft/class_3542$class_7292;
      named CODEC Lnet/minecraft/util/math/Direction$Axis;CODEC:Lnet/minecraft/util/StringIdentifiable$Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official f Lgv$a;f:Ljava/lang/String;
      intermediary field_11053 Lnet/minecraft/class_2350$class_2351;field_11053:Ljava/lang/String;
      named name Lnet/minecraft/util/math/Direction$Axis;name:Ljava/lang/String;
  • Constructor Details

    • Axis

      private Axis(String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgv$a;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2350$class_2351;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/util/math/Direction$Axis;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static Direction.Axis[] 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.Axis 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
    • fromName

      @Nullable public static @Nullable Direction.Axis fromName(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a(Ljava/lang/String;)Lgv$a;
      intermediary method_10177 Lnet/minecraft/class_2350$class_2351;method_10177(Ljava/lang/String;)Lnet/minecraft/class_2350$class_2351;
      named fromName Lnet/minecraft/util/math/Direction$Axis;fromName(Ljava/lang/String;)Lnet/minecraft/util/math/Direction$Axis;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a()Ljava/lang/String;
      intermediary method_10174 Lnet/minecraft/class_2350$class_2351;method_10174()Ljava/lang/String;
      named getName Lnet/minecraft/util/math/Direction$Axis;getName()Ljava/lang/String;
    • isVertical

      public boolean isVertical()
      Mappings:
      Namespace Name Mixin selector
      official b Lgv$a;b()Z
      intermediary method_10178 Lnet/minecraft/class_2350$class_2351;method_10178()Z
      named isVertical Lnet/minecraft/util/math/Direction$Axis;isVertical()Z
    • isHorizontal

      public boolean isHorizontal()
      Mappings:
      Namespace Name Mixin selector
      official d Lgv$a;d()Z
      intermediary method_10179 Lnet/minecraft/class_2350$class_2351;method_10179()Z
      named isHorizontal Lnet/minecraft/util/math/Direction$Axis;isHorizontal()Z
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Direction.Axis>
    • pickRandomAxis

      public static Direction.Axis pickRandomAxis(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a(Laoh;)Lgv$a;
      intermediary method_16699 Lnet/minecraft/class_2350$class_2351;method_16699(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2350$class_2351;
      named pickRandomAxis Lnet/minecraft/util/math/Direction$Axis;pickRandomAxis(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/Direction$Axis;
    • test

      public boolean test(@Nullable @Nullable Direction direction)
      Specified by:
      test in interface Predicate<Direction>
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a(Lgv;)Z
      intermediary method_10176 Lnet/minecraft/class_2350$class_2351;method_10176(Lnet/minecraft/class_2350;)Z
      named test Lnet/minecraft/util/math/Direction$Axis;test(Lnet/minecraft/util/math/Direction;)Z
    • getType

      public Direction.Type getType()
      Mappings:
      Namespace Name Mixin selector
      official e Lgv$a;e()Lgv$c;
      intermediary method_10180 Lnet/minecraft/class_2350$class_2351;method_10180()Lnet/minecraft/class_2350$class_2353;
      named getType Lnet/minecraft/util/math/Direction$Axis;getType()Lnet/minecraft/util/math/Direction$Type;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Laor;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
    • choose

      public abstract int choose(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a(III)I
      intermediary method_10173 Lnet/minecraft/class_2350$class_2351;method_10173(III)I
      named choose Lnet/minecraft/util/math/Direction$Axis;choose(III)I
    • choose

      public abstract double choose(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official a Lgv$a;a(DDD)D
      intermediary method_10172 Lnet/minecraft/class_2350$class_2351;method_10172(DDD)D
      named choose Lnet/minecraft/util/math/Direction$Axis;choose(DDD)D