Enum Class EightWayDirection

java.lang.Object
java.lang.Enum<EightWayDirection>
net.minecraft.util.math.EightWayDirection
All Implemented Interfaces:
Serializable, Comparable<EightWayDirection>, Constable

public enum EightWayDirection extends Enum<EightWayDirection>
Mappings:
Namespace Name
named net/minecraft/util/math/EightWayDirection
intermediary net/minecraft/class_2355
official jn
  • Enum Constant Details

    • NORTH

      public static final EightWayDirection NORTH
      Mappings:
      Namespace Name Mixin selector
      named NORTH Lnet/minecraft/util/math/EightWayDirection;NORTH:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11069 Lnet/minecraft/class_2355;field_11069:Lnet/minecraft/class_2355;
      official a Ljn;a:Ljn;
    • NORTH_EAST

      public static final EightWayDirection NORTH_EAST
      Mappings:
      Namespace Name Mixin selector
      named NORTH_EAST Lnet/minecraft/util/math/EightWayDirection;NORTH_EAST:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11074 Lnet/minecraft/class_2355;field_11074:Lnet/minecraft/class_2355;
      official b Ljn;b:Ljn;
    • EAST

      public static final EightWayDirection EAST
      Mappings:
      Namespace Name Mixin selector
      named EAST Lnet/minecraft/util/math/EightWayDirection;EAST:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11075 Lnet/minecraft/class_2355;field_11075:Lnet/minecraft/class_2355;
      official c Ljn;c:Ljn;
    • SOUTH_EAST

      public static final EightWayDirection SOUTH_EAST
      Mappings:
      Namespace Name Mixin selector
      named SOUTH_EAST Lnet/minecraft/util/math/EightWayDirection;SOUTH_EAST:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11070 Lnet/minecraft/class_2355;field_11070:Lnet/minecraft/class_2355;
      official d Ljn;d:Ljn;
    • SOUTH

      public static final EightWayDirection SOUTH
      Mappings:
      Namespace Name Mixin selector
      named SOUTH Lnet/minecraft/util/math/EightWayDirection;SOUTH:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11073 Lnet/minecraft/class_2355;field_11073:Lnet/minecraft/class_2355;
      official e Ljn;e:Ljn;
    • SOUTH_WEST

      public static final EightWayDirection SOUTH_WEST
      Mappings:
      Namespace Name Mixin selector
      named SOUTH_WEST Lnet/minecraft/util/math/EightWayDirection;SOUTH_WEST:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11068 Lnet/minecraft/class_2355;field_11068:Lnet/minecraft/class_2355;
      official f Ljn;f:Ljn;
    • WEST

      public static final EightWayDirection WEST
      Mappings:
      Namespace Name Mixin selector
      named WEST Lnet/minecraft/util/math/EightWayDirection;WEST:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11072 Lnet/minecraft/class_2355;field_11072:Lnet/minecraft/class_2355;
      official g Ljn;g:Ljn;
    • NORTH_WEST

      public static final EightWayDirection NORTH_WEST
      Mappings:
      Namespace Name Mixin selector
      named NORTH_WEST Lnet/minecraft/util/math/EightWayDirection;NORTH_WEST:Lnet/minecraft/util/math/EightWayDirection;
      intermediary field_11076 Lnet/minecraft/class_2355;field_11076:Lnet/minecraft/class_2355;
      official h Ljn;h:Ljn;
  • Field Details

    • directions

      private final Set<Direction> directions
      Mappings:
      Namespace Name Mixin selector
      named directions Lnet/minecraft/util/math/EightWayDirection;directions:Ljava/util/Set;
      intermediary field_11078 Lnet/minecraft/class_2355;field_11078:Ljava/util/Set;
      official i Ljn;i:Ljava/util/Set;
    • offset

      private final Vec3i offset
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/util/math/EightWayDirection;offset:Lnet/minecraft/util/math/Vec3i;
      intermediary field_37995 Lnet/minecraft/class_2355;field_37995:Lnet/minecraft/class_2382;
      official j Ljn;j:Lkl;
  • Constructor Details

    • EightWayDirection

      private EightWayDirection(Direction[] directions)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/EightWayDirection;<init>(Ljava/lang/String;I[Lnet/minecraft/util/math/Direction;)V
      intermediary <init> Lnet/minecraft/class_2355;<init>(Ljava/lang/String;I[Lnet/minecraft/class_2350;)V
      official <init> Ljn;<init>(Ljava/lang/String;I[Ljm;)V
  • Method Details

    • values

      public static EightWayDirection[] 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 EightWayDirection 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
    • getDirections

      public Set<Direction> getDirections()
      Mappings:
      Namespace Name Mixin selector
      named getDirections Lnet/minecraft/util/math/EightWayDirection;getDirections()Ljava/util/Set;
      intermediary method_10186 Lnet/minecraft/class_2355;method_10186()Ljava/util/Set;
      official a Ljn;a()Ljava/util/Set;
    • getOffsetX

      public int getOffsetX()
      Mappings:
      Namespace Name Mixin selector
      named getOffsetX Lnet/minecraft/util/math/EightWayDirection;getOffsetX()I
      intermediary method_42015 Lnet/minecraft/class_2355;method_42015()I
      official b Ljn;b()I
    • getOffsetZ

      public int getOffsetZ()
      Mappings:
      Namespace Name Mixin selector
      named getOffsetZ Lnet/minecraft/util/math/EightWayDirection;getOffsetZ()I
      intermediary method_42016 Lnet/minecraft/class_2355;method_42016()I
      official c Ljn;c()I