Package org.bukkit.map
Enum Class MapCursor.Type
- All Implemented Interfaces:
Serializable
,Comparable<MapCursor.Type>
,Constable
,net.kyori.adventure.key.Keyed
,Keyed
- 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.getKey()
Return the namespaced identifier for this object.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
-
PLAYER
-
FRAME
-
RED_MARKER
-
BLUE_MARKER
-
TARGET_X
-
TARGET_POINT
-
PLAYER_OFF_MAP
-
PLAYER_OFF_LIMITS
-
MANSION
-
MONUMENT
-
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
-
VILLAGE_DESERT
@MinecraftExperimental(TRADE_REBALANCE) @Experimental public static final MapCursor.Type VILLAGE_DESERT -
VILLAGE_PLAINS
@MinecraftExperimental(TRADE_REBALANCE) @Experimental public static final MapCursor.Type VILLAGE_PLAINS -
VILLAGE_SAVANNA
@MinecraftExperimental(TRADE_REBALANCE) @Experimental public static final MapCursor.Type VILLAGE_SAVANNA -
VILLAGE_SNOWY
@MinecraftExperimental(TRADE_REBALANCE) @Experimental public static final MapCursor.Type VILLAGE_SNOWY -
VILLAGE_TAIGA
@MinecraftExperimental(TRADE_REBALANCE) @Experimental public static final MapCursor.Type VILLAGE_TAIGA -
JUNGLE_TEMPLE
@MinecraftExperimental(TRADE_REBALANCE) @Experimental public static final MapCursor.Type JUNGLE_TEMPLE -
SWAMP_HUT
-
TRIAL_CHAMBERS
-
-
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
-
getKey
Description copied from interface:Keyed
Return the namespaced identifier for this object. -
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
-