Enum Class Direction.Type

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

public static enum Direction.Type extends Enum<Direction.Type> implements Iterable<Direction>, Predicate<Direction>
Mappings:
Namespace Name
named net/minecraft/util/math/Direction$Type
intermediary net/minecraft/class_2350$class_2353
official ji$c
  • Enum Constant Details

    • HORIZONTAL

      public static final Direction.Type HORIZONTAL
      Mappings:
      Namespace Name Mixin selector
      named HORIZONTAL Lnet/minecraft/util/math/Direction$Type;HORIZONTAL:Lnet/minecraft/util/math/Direction$Type;
      intermediary field_11062 Lnet/minecraft/class_2350$class_2353;field_11062:Lnet/minecraft/class_2350$class_2353;
      official a Lji$c;a:Lji$c;
    • VERTICAL

      public static final Direction.Type VERTICAL
      Mappings:
      Namespace Name Mixin selector
      named VERTICAL Lnet/minecraft/util/math/Direction$Type;VERTICAL:Lnet/minecraft/util/math/Direction$Type;
      intermediary field_11064 Lnet/minecraft/class_2350$class_2353;field_11064:Lnet/minecraft/class_2350$class_2353;
      official b Lji$c;b:Lji$c;
  • Field Details

    • facingArray

      private final Direction[] facingArray
      Mappings:
      Namespace Name Mixin selector
      named facingArray Lnet/minecraft/util/math/Direction$Type;facingArray:[Lnet/minecraft/util/math/Direction;
      intermediary field_11061 Lnet/minecraft/class_2350$class_2353;field_11061:[Lnet/minecraft/class_2350;
      official c Lji$c;c:[Lji;
    • axisArray

      private final Direction.Axis[] axisArray
      Mappings:
      Namespace Name Mixin selector
      named axisArray Lnet/minecraft/util/math/Direction$Type;axisArray:[Lnet/minecraft/util/math/Direction$Axis;
      intermediary field_11065 Lnet/minecraft/class_2350$class_2353;field_11065:[Lnet/minecraft/class_2350$class_2351;
      official d Lji$c;d:[Lji$a;
  • Constructor Details

    • Type

      private Type(Direction[] facingArray, Direction.Axis[] axisArray)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/Direction$Type;<init>(Ljava/lang/String;I[Lnet/minecraft/util/math/Direction;[Lnet/minecraft/util/math/Direction$Axis;)V
      intermediary <init> Lnet/minecraft/class_2350$class_2353;<init>(Ljava/lang/String;I[Lnet/minecraft/class_2350;[Lnet/minecraft/class_2350$class_2351;)V
      official <init> Lji$c;<init>(Ljava/lang/String;I[Lji;[Lji$a;)V
  • Method Details

    • values

      public static Direction.Type[] 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.Type 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
    • random

      public Direction random(Random random)
      Mappings:
      Namespace Name Mixin selector
      named random Lnet/minecraft/util/math/Direction$Type;random(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/Direction;
      intermediary method_10183 Lnet/minecraft/class_2350$class_2353;method_10183(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2350;
      official a Lji$c;a(Layw;)Lji;
    • randomAxis

      public Direction.Axis randomAxis(Random random)
      Mappings:
      Namespace Name Mixin selector
      named randomAxis Lnet/minecraft/util/math/Direction$Type;randomAxis(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/util/math/Direction$Axis;
      intermediary method_33465 Lnet/minecraft/class_2350$class_2353;method_33465(Lnet/minecraft/class_5819;)Lnet/minecraft/class_2350$class_2351;
      official b Lji$c;b(Layw;)Lji$a;
    • test

      public boolean test(@Nullable @Nullable Direction direction)
      Specified by:
      test in interface Predicate<Direction>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/util/math/Direction$Type;test(Lnet/minecraft/util/math/Direction;)Z
      intermediary method_10182 Lnet/minecraft/class_2350$class_2353;method_10182(Lnet/minecraft/class_2350;)Z
      official a Lji$c;a(Lji;)Z
    • iterator

      public Iterator<Direction> iterator()
      Specified by:
      iterator in interface Iterable<Direction>
    • stream

      public Stream<Direction> stream()
      Mappings:
      Namespace Name Mixin selector
      named stream Lnet/minecraft/util/math/Direction$Type;stream()Ljava/util/stream/Stream;
      intermediary method_29716 Lnet/minecraft/class_2350$class_2353;method_29716()Ljava/util/stream/Stream;
      official a Lji$c;a()Ljava/util/stream/Stream;
    • getShuffled

      public List<Direction> getShuffled(Random random)
      Mappings:
      Namespace Name Mixin selector
      named getShuffled Lnet/minecraft/util/math/Direction$Type;getShuffled(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
      intermediary method_43342 Lnet/minecraft/class_2350$class_2353;method_43342(Lnet/minecraft/class_5819;)Ljava/util/List;
      official c Lji$c;c(Layw;)Ljava/util/List;
    • getFacingCount

      public int getFacingCount()
      Mappings:
      Namespace Name Mixin selector
      named getFacingCount Lnet/minecraft/util/math/Direction$Type;getFacingCount()I
      intermediary method_57092 Lnet/minecraft/class_2350$class_2353;method_57092()I
      official b Lji$c;b()I