# 接口的使用
org.bukkit.Registry

使用Registry的程序包
程序包
说明
org.bukkit
Bukkit API的顶级程序包, 包含通用的API类和接口.

- ## org.bukkit中Registry的使用

  实现Registry的org.bukkit中的类
  修饰符和类型
  类
  说明
  `static final class`
  `Registry.SimpleRegistry<T extends Enum<T> & Keyed>`
  声明为Registry的org.bukkit中的字段
  修饰符和类型
  字段
  说明
  `static final Registry<Advancement>`
  Registry.`ADVANCEMENT`
  Server advancements.
  `static final Registry<Art>`
  Registry.`ART`
  Server art.
  `static final Registry<Attribute>`
  Registry.`ATTRIBUTE`
  Attribute.
  `static final Registry<PatternType>`
  Registry.`BANNER_PATTERN`
  Server banner patterns.
  `static final Registry<Biome>`
  Registry.`BIOME`
  Server biomes.
  `static final Registry<BlockType>`
  Registry.`BLOCK`
  Server block types.
  `static final Registry<KeyedBossBar>`
  Registry.`BOSS_BARS`
  Custom boss bars.
  `static final Registry<Cat.Type>`
  Registry.`CAT_VARIANT`
  Server cat types.
  `static final Registry<DamageType>`
  Registry.`DAMAGE_TYPE`
  Damage types.
  `static final Registry<PotionEffectType>`
  Registry.`EFFECT`
  Server mob effects.
  `static final Registry<Enchantment>`
  Registry.`ENCHANTMENT`
  Server enchantments.
  `static final Registry<EntityType>`
  Registry.`ENTITY_TYPE`
  Server entity types.
  `static final Registry<Fluid>`
  Registry.`FLUID`
  Server fluids.
  `static final Registry<Frog.Variant>`
  Registry.`FROG_VARIANT`
  Frog variants.
  `static final Registry<GameEvent>`
  Registry.`GAME_EVENT`
  Game events.
  `static final Registry<MusicInstrument>`
  Registry.`INSTRUMENT`
  Server instruments.
  `static final Registry<ItemType>`
  Registry.`ITEM`
  Server item types.
  `static final Registry<JukeboxSong>`
  Registry.`JUKEBOX_SONG`
  Jukebox songs.
  `static final Registry<LootTables>`
  Registry.`LOOT_TABLES`
  Default server loot tables.
  `static final Registry<MapCursor.Type>`
  Registry.`MAP_DECORATION_TYPE`
  Map cursor types.
  `static final Registry<Material>`
  Registry.`MATERIAL`
  Server materials.
  `static final Registry<MemoryKey>`
  Registry.`MEMORY_MODULE_TYPE`
  Memory Keys.
  `static final Registry<Particle>`
  Registry.`PARTICLE_TYPE`
  Server particles.
  `static final Registry<PotionType>`
  Registry.`POTION`
  Server potions.
  `static final Registry<Sound>`
  Registry.`SOUNDS`
  Sound keys.
  `static final Registry<Statistic>`
  Registry.`STATISTIC`
  Server statistics.
  `static final Registry<Structure>`
  Registry.`STRUCTURE`
  Server structures.
  `static final Registry<StructureType>`
  Registry.`STRUCTURE_TYPE`
  Server structure types.
  `static final Registry<TrimMaterial>`
  Registry.`TRIM_MATERIAL`
  Trim materials.
  `static final Registry<TrimPattern>`
  Registry.`TRIM_PATTERN`
  Trim patterns.
  `static final Registry<Villager.Profession>`
  Registry.`VILLAGER_PROFESSION`
  Villager profession.
  `static final Registry<Villager.Type>`
  Registry.`VILLAGER_TYPE`
  Villager type.
  `static final Registry<Wolf.Variant>`
  Registry.`WOLF_VARIANT`
  Wolf variants.
  返回Registry的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `static <T extends Keyed>
  @Nullable Registry<T>`
  Bukkit.`getRegistry(@NotNull Class<T> tClass)`
  Returns the registry for the given class.
  `<T extends Keyed>
  @Nullable Registry<T>`
  Server.`getRegistry(@NotNull Class<T> tClass)`
  Returns the registry for the given class.
  参数类型为Registry的org.bukkit中的方法
  修饰符和类型
  方法
  说明
  `<B extends Keyed>
  B`
  UnsafeValues.`get(Registry<B> registry, NamespacedKey key)`
  已过时。