Package org.bukkit.map
Enum MapCursor.Type
- All Implemented Interfaces:
Serializable
,Comparable<MapCursor.Type>
,java.lang.constant.Constable
- Enclosing class:
- MapCursor
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 './misc/mapicons.png' from minecraft.jar or from a
resource pack.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic MapCursor.Type
byValue(byte value)
Deprecated.Magic valuebyte
getValue()
Deprecated.Magic valuestatic MapCursor.Type
Returns the enum constant of this type with the specified name.static MapCursor.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WHITE_POINTER
-
GREEN_POINTER
-
RED_POINTER
-
BLUE_POINTER
-
WHITE_CROSS
-
RED_MARKER
-
WHITE_CIRCLE
-
SMALL_WHITE_CIRCLE
-
MANSION
-
TEMPLE
-
BANNER_WHITE
-
BANNER_ORANGE
-
BANNER_MAGENTA
-
BANNER_LIGHT_BLUE
-
BANNER_YELLOW
-
BANNER_LIME
-
BANNER_PINK
-
BANNER_GRAY
-
BANNER_LIGHT_GRAY
-
BANNER_CYAN
-
BANNER_PURPLE
-
BANNER_BLUE
-
BANNER_BROWN
-
BANNER_GREEN
-
BANNER_RED
-
BANNER_BLACK
-
RED_X
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getValue
Deprecated.Magic valueGets the internal value of the cursor.- Returns:
- the value
-
byValue
Deprecated.Magic valueGet a cursor by its internal value.- Parameters:
value
- the value- Returns:
- the matching type
-