Package org.bukkit
Interface Registry<T extends Keyed>
- Type Parameters:
- T- type of item in the registry
- All Superinterfaces:
- Iterable<T>
- All Known Implementing Classes:
- Registry.SimpleRegistry
Represents a registry of Bukkit objects that may be retrieved by
 
NamespacedKey.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classRegistry.SimpleRegistry<T extends Enum<T> & Keyed>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Registry<Advancement>Server advancements.Server art.Attribute.Server biomes.static final Registry<KeyedBossBar>Custom boss bars.static final Registry<ConfiguredStructure>Deprecated, for removal: This API element is subject to removal in a future version.static final Registry<Enchantment>Server enchantments.static final Registry<EntityType>Server entity types.Server fluids.static final Registry<Frog.Variant>Frog variants.Game events.static final Registry<MusicInstrument>Server instruments.static final Registry<LootTables>Default server loot tables.Server materials.Memory Keys.static final Registry<PotionEffectType>Potion effect types.Sound keys.Server statistics.Server structures.static final Registry<StructureType>Server structure types.static final Registry<TrimMaterial>Trim materials.static final Registry<TrimPattern>Trim patterns.static final Registry<Villager.Profession>Villager profession.static final Registry<Villager.Type>Villager type.
- 
Method SummaryModifier and TypeMethodDescriptionget(@NotNull NamespacedKey key) Get the object by its key.default TDeprecated, for removal: This API element is subject to removal in a future version.this method's behavior is broken and not useful.stream()Returns a new stream, which contains all registry items, which are registered to the registry.Methods inherited from interface java.lang.IterableforEach, iterator, spliterator
- 
Field Details- 
ADVANCEMENTServer advancements.
- 
ARTServer art.- See Also:
 
- 
ATTRIBUTEAttribute.- See Also:
 
- 
BIOMEServer biomes.- See Also:
 
- 
BOSS_BARSCustom boss bars.
- 
ENCHANTMENTServer enchantments.
- 
ENTITY_TYPEServer entity types.- See Also:
 
- 
INSTRUMENTServer instruments.- See Also:
 
- 
LOOT_TABLESDefault server loot tables.- See Also:
 
- 
MATERIALServer materials.- See Also:
 
- 
STATISTICServer statistics.- See Also:
 
- 
STRUCTUREServer structures.- See Also:
 
- 
STRUCTURE_TYPEServer structure types.- See Also:
 
- 
SOUNDSSound keys.- See Also:
 
- 
TRIM_MATERIALTrim materials.- See Also:
 
- 
TRIM_PATTERNTrim patterns.- See Also:
 
- 
VILLAGER_PROFESSIONVillager profession.- See Also:
 
- 
VILLAGER_TYPEVillager type.- See Also:
 
- 
MEMORY_MODULE_TYPEMemory Keys.- See Also:
 
- 
FLUIDServer fluids.- See Also:
 
- 
FROG_VARIANTFrog variants.- See Also:
 
- 
GAME_EVENTGame events.- See Also:
 
- 
CONFIGURED_STRUCTUREDeprecated, for removal: This API element is subject to removal in a future version.useSTRUCTUREConfigured structures.- See Also:
 
- 
POTION_EFFECT_TYPEPotion effect types.- See Also:
 
 
- 
- 
Method Details- 
getGet the object by its key.- Parameters:
- key- non-null key
- Returns:
- item or null if does not exist
 
- 
streamReturns a new stream, which contains all registry items, which are registered to the registry.- Returns:
- a stream of all registry items
 
- 
matchDeprecated, for removal: This API element is subject to removal in a future version.this method's behavior is broken and not useful. If you want to get an object based on its vanilla name, or a key, wrap it in aNamespacedKeyobject and useget(NamespacedKey)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. - Parameters:
- input- non-null input
- Returns:
- registered object or null if does not exist
 
 
- 
STRUCTURE