程序包 org.bukkit.map
接口 MapCursor.Type
- 所有超级接口:
Comparable<MapCursor.Type>,Keyed,OldEnum<MapCursor.Type>,RegistryAware
- 封闭类:
- MapCursor
表示地图光标的标准类型。可能有更多被资源包(原材质包)提供的类型,这个数值被客户端当做minecraft.jar里的'./assets/minecraft/textures/map/map_icons.png'文件的索引或一个材质包中的索引使用.
原文: 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.
-
字段概要
字段修饰符和类型字段说明static final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Typestatic final MapCursor.Type -
方法概要
修饰符和类型方法说明static @Nullable MapCursor.TypebyValue(byte value) 已过时。魔法值getKey()已过时。键可能并不总是存在,请改用RegistryAware.getKeyOrThrow()。bytegetValue()已过时。魔法值static @NotNull MapCursor.Type已过时。仅为向后兼容,请改用Registry.get(NamespacedKey)。static @NotNull MapCursor.Type[]values()已过时。请使用Iterable.iterator()。从接口继承的方法 org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
字段详细资料
-
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
-
VILLAGE_PLAINS
-
VILLAGE_SAVANNA
-
VILLAGE_SNOWY
-
VILLAGE_TAIGA
-
JUNGLE_TEMPLE
-
SWAMP_HUT
-
TRIAL_CHAMBERS
-
ABANDONED_CAMP
-
ANCIENT_CITY
-
DESERT_PYRAMID
-
MINESHAFT
-
OCEAN_RUIN_WARM
-
-
方法详细资料
-
getKey
已过时。键可能并不总是存在,请改用RegistryAware.getKeyOrThrow()。返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
getValue
已过时。魔法值获取光标的内部值。原文:Gets the internal value of the cursor.
- 返回:
- 内部值
-
byValue
已过时。魔法值通过内部值获取光标类型。原文:Get a cursor by its internal value.
- 参数:
value- 内部值- 返回:
- 匹配的类型
-
valueOf
@NotNull @Deprecated(since="1.21") static @NotNull MapCursor.Type valueOf(@NotNull @NotNull String name) 已过时。仅为向后兼容,请改用Registry.get(NamespacedKey)。通过名称获取光标类型。原文:Get a cursor type by name.
- 参数:
name- 类型的名称- 返回:
- 具有给定名称的类型
-
values
已过时。请使用Iterable.iterator()。获取所有已知地图光标类型的数组。原文:Get an array of all known map cursor types.
- 返回:
- 所有已知地图光标类型的数组
-