Enum Class Direction.DirectionType

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

public static enum Direction.DirectionType extends Enum<Direction.DirectionType> implements Iterable<Direction>, Predicate<Direction>
Mappings:
Namespace Name
official eq$c
intermediary net/minecraft/class_1354$class_2560
named net/minecraft/util/math/Direction$DirectionType
  • Enum Constant Details

    • HORIZONTAL

      public static final Direction.DirectionType HORIZONTAL
      Mappings:
      Namespace Name Mixin selector
      official a Leq$c;a:Leq$c;
      intermediary field_11477 Lnet/minecraft/class_1354$class_2560;field_11477:Lnet/minecraft/class_1354$class_2560;
      named HORIZONTAL Lnet/minecraft/util/math/Direction$DirectionType;HORIZONTAL:Lnet/minecraft/util/math/Direction$DirectionType;
    • VERTICAL

      public static final Direction.DirectionType VERTICAL
      Mappings:
      Namespace Name Mixin selector
      official b Leq$c;b:Leq$c;
      intermediary field_21290 Lnet/minecraft/class_1354$class_2560;field_21290:Lnet/minecraft/class_1354$class_2560;
      named VERTICAL Lnet/minecraft/util/math/Direction$DirectionType;VERTICAL:Lnet/minecraft/util/math/Direction$DirectionType;
  • Field Details

    • field_21291

      private final Direction[] field_21291
      Mappings:
      Namespace Name Mixin selector
      official c Leq$c;c:[Leq;
      intermediary field_21291 Lnet/minecraft/class_1354$class_2560;field_21291:[Lnet/minecraft/class_1354;
      named field_21291 Lnet/minecraft/util/math/Direction$DirectionType;field_21291:[Lnet/minecraft/util/math/Direction;
    • field_21292

      private final Direction.Axis[] field_21292
      Mappings:
      Namespace Name Mixin selector
      official d Leq$c;d:[Leq$a;
      intermediary field_21292 Lnet/minecraft/class_1354$class_2560;field_21292:[Lnet/minecraft/class_1354$class_2558;
      named field_21292 Lnet/minecraft/util/math/Direction$DirectionType;field_21292:[Lnet/minecraft/util/math/Direction$Axis;
  • Constructor Details

  • Method Details

    • values

      public static Direction.DirectionType[] 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.DirectionType 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
    • getRandomDirection

      public Direction getRandomDirection(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Leq$c;a(Ljava/util/Random;)Leq;
      intermediary method_10551 Lnet/minecraft/class_1354$class_2560;method_10551(Ljava/util/Random;)Lnet/minecraft/class_1354;
      named getRandomDirection Lnet/minecraft/util/math/Direction$DirectionType;getRandomDirection(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;
    • test

      public boolean test(@Nullable Direction direction)
      Specified by:
      test in interface Predicate<Direction>
      Mappings:
      Namespace Name Mixin selector
      official a Leq$c;a(Leq;)Z
      intermediary method_10550 Lnet/minecraft/class_1354$class_2560;method_10550(Lnet/minecraft/class_1354;)Z
      named test Lnet/minecraft/util/math/Direction$DirectionType;test(Lnet/minecraft/util/math/Direction;)Z
    • iterator

      public Iterator<Direction> iterator()
      Specified by:
      iterator in interface Iterable<Direction>
      Mappings:
      Namespace Name Mixin selector
      official iterator Leq$c;iterator()Ljava/util/Iterator;
      intermediary iterator Lnet/minecraft/class_1354$class_2560;iterator()Ljava/util/Iterator;
      named iterator Lnet/minecraft/util/math/Direction$DirectionType;iterator()Ljava/util/Iterator;