Enum EightWayDirection

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

public enum EightWayDirection
extends Enum<EightWayDirection>
  • Enum Constant Details

  • Field Details

    • NORTHWEST_BIT

      private static final int NORTHWEST_BIT
    • WEST_BIT

      private static final int WEST_BIT
    • SOUTHWEST_BIT

      private static final int SOUTHWEST_BIT
    • SOUTH_BIT

      private static final int SOUTH_BIT
    • SOUTHEAST_BIT

      private static final int SOUTHEAST_BIT
    • EAST_BIT

      private static final int EAST_BIT
    • NORTHEAST_BIT

      private static final int NORTHEAST_BIT
    • NORTH_BIT

      private static final int NORTH_BIT
    • directions

      private final Set<Direction> directions
  • Constructor Details

    • EightWayDirection

      private EightWayDirection​(Direction[] direction)
  • Method Details

    • values

      public static EightWayDirection[] 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 EightWayDirection 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 Set<Direction> getDirections()