程序包 org.bukkit
接口 Registry<T extends Keyed>
- 类型参数:
T- 注册表中项目的类型
- 所有超级接口:
Iterable<T>
- 所有已知实现类:
Registry.SimpleRegistry
表示可以通过
NamespacedKey 检索的 Bukkit 对象注册表。-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final Registry<Advancement>已过时。Advancement 没有真正的服务端注册表。服务器艺术品。属性。static final Registry<PatternType>服务器旗帜图案。服务器生物群系。服务器方块类型。static final Registry<KeyedBossBar>已过时。BossBar 没有真正的服务端注册表。服务器猫品种。static final Registry<Chicken.Variant>服务器鸡变种。static final Registry<Cow.Variant>服务器牛变种。static final Registry<DamageType>伤害类型。static final Registry<PotionEffectType>服务器药水效果。static final Registry<Enchantment>服务器附魔。static final Registry<EntityType>服务器实体类型。服务器流体。static final Registry<Frog.Variant>青蛙变种。游戏事件。游戏规则。static final Registry<MusicInstrument>服务器乐器。服务器物品类型。static final Registry<JukeboxSong>唱片机歌曲。static final Registry<LootTables>已过时。LootTables(不要与LootTable类混淆)没有真正的服务端注册表。static final Registry<MapCursor.Type>地图光标类型。服务器材质。记忆键。服务器菜单。服务器粒子。static final Registry<Pig.Variant>服务器猪变种。static final Registry<PotionType>服务器药水。声音键。服务器统计。服务器结构。static final Registry<StructureType>服务器结构类型。static final Registry<TrimMaterial>装饰材料。static final Registry<TrimPattern>装饰图案。static final Registry<Villager.Profession>村民职业。static final Registry<Villager.Type>村民类型。static final Registry<Wolf.Variant>狼变种。static final Registry<ZombieNautilus.Variant>服务器僵尸鹦鹉螺变种。 -
方法概要
从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
字段详细资料
-
ADVANCEMENT
已过时。Advancement 没有真正的服务端注册表。服务器进度。 -
ART
服务器艺术品。- 另请参阅:
-
ATTRIBUTE
属性。- 另请参阅:
-
BANNER_PATTERN
服务器旗帜图案。- 另请参阅:
-
BIOME
服务器生物群系。- 另请参阅:
-
BLOCK
服务器方块类型。- 另请参阅:
-
BOSS_BARS
已过时。BossBar 没有真正的服务端注册表。自定义 Boss 血条。 -
CAT_VARIANT
服务器猫品种。- 另请参阅:
-
PIG_VARIANT
服务器猪变种。- 另请参阅:
-
COW_VARIANT
服务器牛变种。- 另请参阅:
-
CHICKEN_VARIANT
服务器鸡变种。- 另请参阅:
-
ZOMBIE_NAUTILUS_VARIANT
服务器僵尸鹦鹉螺变种。- 另请参阅:
-
ENCHANTMENT
服务器附魔。- 另请参阅:
-
ENTITY_TYPE
服务器实体类型。- 另请参阅:
-
INSTRUMENT
服务器乐器。- 另请参阅:
-
ITEM
服务器物品类型。- 另请参阅:
-
LOOT_TABLES
已过时。LootTables(不要与LootTable类混淆)没有真正的服务端注册表。默认服务器战利品表。- 另请参阅:
-
MATERIAL
服务器材质。- 另请参阅:
-
MENU
服务器菜单。- 另请参阅:
-
EFFECT
服务器药水效果。- 另请参阅:
-
PARTICLE_TYPE
服务器粒子。- 另请参阅:
-
POTION
服务器药水。- 另请参阅:
-
STATISTIC
服务器统计。- 另请参阅:
-
STRUCTURE
服务器结构。- 另请参阅:
-
STRUCTURE_TYPE
服务器结构类型。- 另请参阅:
-
SOUNDS
声音键。- 另请参阅:
-
TRIM_MATERIAL
装饰材料。- 另请参阅:
-
TRIM_PATTERN
装饰图案。- 另请参阅:
-
DAMAGE_TYPE
伤害类型。- 另请参阅:
-
JUKEBOX_SONG
唱片机歌曲。- 另请参阅:
-
VILLAGER_PROFESSION
村民职业。- 另请参阅:
-
VILLAGER_TYPE
村民类型。- 另请参阅:
-
GAME_RULE
游戏规则。- 另请参阅:
-
MEMORY_MODULE_TYPE
记忆键。- 另请参阅:
-
FLUID
服务器流体。- 另请参阅:
-
FROG_VARIANT
青蛙变种。- 另请参阅:
-
WOLF_VARIANT
狼变种。- 另请参阅:
-
MAP_DECORATION_TYPE
地图光标类型。- 另请参阅:
-
GAME_EVENT
游戏事件。- 另请参阅:
-
-
方法详细资料
-
get
通过键获取对象。- 参数:
key- 非空键。key- non-null key- 返回:
- 对象,如果不存在则返回 null。 原文: Get the object by its key.
-
getOrThrow
通过键获取对象。 如果没有具有给定键的对象,将抛出异常。- 参数:
key- 用于获取对象的键。key- to get the object from- 返回:
- 具有给定键的对象。
- 抛出:
IllegalArgumentException- 如果没有具有给定键的对象。 原文: Get the object by its key. If there is no object with the given key, an exception will be thrown.IllegalArgumentException- if there is no object with the given key
-
stream
返回一个包含所有已注册到注册表中的注册项的新流。- 返回:
- 所有注册项的流。 原文: Returns a new stream, which contains all registry items, which are registered to the registry.
-
match
尝试将注册对象与给定键匹配。将尝试根据提供的输入找到合理的匹配,可能通过未指定的方式进行。
- 参数:
input- 非空输入。input- non-null input- 返回:
- 注册对象,如果不存在则返回 null。
原文:
Attempts to match the registered object with the given key.
This will attempt to find a reasonable match based on the provided input and may do so through unspecified means.
-