Enum Direction.DirectionType

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

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

    • HORIZONTAL

      public static final Direction.DirectionType HORIZONTAL
      Mappings:
      Namespace Name Mixin selector
      official a Lcq$c;a:Lcq$c;
      intermediary field_5830 Lnet/minecraft/class_1383$class_1386;field_5830:Lnet/minecraft/class_1383$class_1386;
      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 Lcq$c;b:Lcq$c;
      intermediary field_5831 Lnet/minecraft/class_1383$class_1386;field_5831:Lnet/minecraft/class_1383$class_1386;
      named VERTICAL Lnet/minecraft/util/math/Direction$DirectionType;VERTICAL:Lnet/minecraft/util/math/Direction$DirectionType;
  • Constructor Details

    • DirectionType

      private DirectionType()
  • Method Details

    • values

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

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

      public Direction[] getDirections()
      Mappings:
      Namespace Name Mixin selector
      official a Lcq$c;a()[Lcq;
      intermediary method_4940 Lnet/minecraft/class_1383$class_1386;method_4940()[Lnet/minecraft/class_1383;
      named getDirections Lnet/minecraft/util/math/Direction$DirectionType;getDirections()[Lnet/minecraft/util/math/Direction;
    • getRandomDirection

      public Direction getRandomDirection​(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcq$c;a(Ljava/util/Random;)Lcq;
      intermediary method_4942 Lnet/minecraft/class_1383$class_1386;method_4942(Ljava/util/Random;)Lnet/minecraft/class_1383;
      named getRandomDirection Lnet/minecraft/util/math/Direction$DirectionType;getRandomDirection(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;
    • apply

      public boolean apply​(Direction direction)
      Specified by:
      apply in interface Predicate<Direction>
      Mappings:
      Namespace Name Mixin selector
      official a Lcq$c;a(Lcq;)Z
      intermediary method_4941 Lnet/minecraft/class_1383$class_1386;method_4941(Lnet/minecraft/class_1383;)Z
      named apply Lnet/minecraft/util/math/Direction$DirectionType;apply(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 Lcq$c;iterator()Ljava/util/Iterator;
      intermediary iterator Lnet/minecraft/class_1383$class_1386;iterator()Ljava/util/Iterator;
      named iterator Lnet/minecraft/util/math/Direction$DirectionType;iterator()Ljava/util/Iterator;