接口的使用
org.bukkit.Registry
-
org.bukkit中Registry的使用
修饰符和类型字段说明static final Registry<Advancement>
Registry.ADVANCEMENT
Server advancements.Registry.ART
Server art.Registry.ATTRIBUTE
Attribute.static final Registry<PatternType>
Registry.BANNER_PATTERN
Server banner patterns.Registry.BIOME
Server biomes.Registry.BLOCK
Server block types.static final Registry<KeyedBossBar>
Registry.BOSS_BARS
Custom boss bars.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.Registry.FLUID
Server fluids.static final Registry<Frog.Variant>
Registry.FROG_VARIANT
Frog variants.Registry.GAME_EVENT
Game events.static final Registry<MusicInstrument>
Registry.INSTRUMENT
Server instruments.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.Registry.MATERIAL
Server materials.Registry.MEMORY_MODULE_TYPE
Memory Keys.Registry.PARTICLE_TYPE
Server particles.static final Registry<PotionType>
Registry.POTION
Server potions.Registry.SOUNDS
Sound keys.Registry.STATISTIC
Server statistics.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.修饰符和类型方法说明Bukkit.getRegistry
(@NotNull Class<T> tClass) Returns the registry for the given class.Server.getRegistry
(@NotNull Class<T> tClass) Returns the registry for the given class.