接口的使用
org.bukkit.Registry
使用Registry的程序包
-
org.bukkit中Registry的使用
实现Registry的org.bukkit中的类声明为Registry的org.bukkit中的字段修饰符和类型字段说明static final Registry<Advancement>Registry.ADVANCEMENT已过时。Advancement 没有真正的服务端注册表。Registry.ART服务器艺术品。Registry.ATTRIBUTE属性。static final Registry<PatternType>Registry.BANNER_PATTERN服务器旗帜图案。Registry.BIOME服务器生物群系。Registry.BLOCK服务器方块类型。static final Registry<KeyedBossBar>Registry.BOSS_BARS已过时。BossBar 没有真正的服务端注册表。Registry.CAT_VARIANT服务器猫品种。static final Registry<Chicken.Variant>Registry.CHICKEN_VARIANT服务器鸡变种。static final Registry<Cow.Variant>Registry.COW_VARIANT服务器牛变种。static final Registry<DamageType>Registry.DAMAGE_TYPE伤害类型。static final Registry<PotionEffectType>Registry.EFFECT服务器药水效果。static final Registry<Enchantment>Registry.ENCHANTMENT服务器附魔。static final Registry<EntityType>Registry.ENTITY_TYPE服务器实体类型。Registry.FLUID服务器流体。static final Registry<Frog.Variant>Registry.FROG_VARIANT青蛙变种。Registry.GAME_EVENT游戏事件。Registry.GAME_RULE游戏规则。static final Registry<MusicInstrument>Registry.INSTRUMENT服务器乐器。Registry.ITEM服务器物品类型。static final Registry<JukeboxSong>Registry.JUKEBOX_SONG唱片机歌曲。static final Registry<LootTables>Registry.LOOT_TABLES已过时。LootTables(不要与LootTable类混淆)没有真正的服务端注册表。static final Registry<MapCursor.Type>Registry.MAP_DECORATION_TYPE地图光标类型。Registry.MATERIAL服务器材质。Registry.MEMORY_MODULE_TYPE记忆键。Registry.MENU服务器菜单。Registry.PARTICLE_TYPE服务器粒子。static final Registry<Pig.Variant>Registry.PIG_VARIANT服务器猪变种。static final Registry<PotionType>Registry.POTION服务器药水。Registry.SOUNDS声音键。Registry.STATISTIC服务器统计。Registry.STRUCTURE服务器结构。static final Registry<StructureType>Registry.STRUCTURE_TYPE服务器结构类型。static final Registry<TrimMaterial>Registry.TRIM_MATERIAL装饰材料。static final Registry<TrimPattern>Registry.TRIM_PATTERN装饰图案。static final Registry<Villager.Profession>Registry.VILLAGER_PROFESSION村民职业。static final Registry<Villager.Type>Registry.VILLAGER_TYPE村民类型。static final Registry<Wolf.Variant>Registry.WOLF_VARIANT狼变种。static final Registry<ZombieNautilus.Variant>Registry.ZOMBIE_NAUTILUS_VARIANT服务器僵尸鹦鹉螺变种。返回Registry的org.bukkit中的方法修饰符和类型方法说明Bukkit.getRegistry(@NotNull Class<T> tClass) 返回给定类的注册表.Server.getRegistry(@NotNull Class<T> tClass) 返回给定类的注册表.参数类型为Registry的org.bukkit中的方法