Enum XYZD.Direction

java.lang.Object
java.lang.Enum<XYZD.Direction>
de.marcely.bedwars.tools.location.XYZD.Direction
All Implemented Interfaces:
Serializable, Comparable<XYZD.Direction>, java.lang.constant.Constable
Enclosing class:
XYZD

public static enum XYZD.Direction extends Enum<XYZD.Direction>
  • Enum Constant Details

  • Method Details

    • values

      public static XYZD.Direction[] 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 XYZD.Direction 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
    • asBlockFace

      public BlockFace asBlockFace()
    • getModX

      public int getModX()
    • getModZ

      public int getModZ()
    • toLegacy

      @Deprecated public int toLegacy()
      Deprecated.
    • fromName

      @Nullable public static @Nullable XYZD.Direction fromName(String name)
    • fromBlockFace

      @Nullable public static @Nullable XYZD.Direction fromBlockFace(BlockFace face)
    • fromLegacy

      @Deprecated @Nullable public static @Nullable XYZD.Direction fromLegacy(int id)
      Deprecated.