Enum Class MapCursor.Type

java.lang.Object
java.lang.Enum<MapCursor.Type>
org.bukkit.map.MapCursor.Type
All Implemented Interfaces:
Serializable, Comparable<MapCursor.Type>, Constable
Enclosing class:
MapCursor

public static enum MapCursor.Type extends Enum<MapCursor.Type>
Represents the standard types of map cursors. More may be made available by resource packs - the value is used by the client as an index in the file './assets/minecraft/textures/map/map_icons.png' from minecraft.jar or from a resource pack.
  • Enum Constant Details

  • Method Details

    • values

      public static MapCursor.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 MapCursor.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
    • getValue

      @Deprecated public byte getValue()
      Deprecated.
      Magic value
      Gets the internal value of the cursor.
      Returns:
      the value
    • byValue

      @Deprecated @Nullable public static MapCursor.Type byValue(byte value)
      Deprecated.
      Magic value
      Get a cursor by its internal value.
      Parameters:
      value - the value
      Returns:
      the matching type