Package org.bukkit.map
Enum Class MapCursor.Type
- All Implemented Interfaces:
Serializable
,Comparable<MapCursor.Type>
,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 './assets/minecraft/textures/map/map_icons.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 @Nullable MapCursor.Type
byValue
(byte value) Get a cursor by its internal value.byte
getValue()
Gets the internal value of the cursor.static MapCursor.Type
Returns the enum constant of this class with the specified name.static MapCursor.Type[]
values()
Returns an array containing the constants of this enum class, 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
-
DESERT_VILLAGE
-
PLAINS_VILLAGE
-
SAVANNA_VILLAGE
-
SNOWY_VILLAGE
-
TAIGA_VILLAGE
-
JUNGLE_TEMPLE
-
SWAMP_HUT
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getValue
Gets the internal value of the cursor.- Returns:
- the value
- API Note:
- Internal Use Only
-
byValue
Get a cursor by its internal value.- Parameters:
value
- the value- Returns:
- the matching type
- API Note:
- Internal Use Only
-