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 Summary
Modifier and TypeInterfaceDescriptionstatic final class
Registry.SimpleRegistry<T extends Enum<T> & Keyed>
-
Field Summary
Modifier 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<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<Villager.Profession>
Villager profession.static final Registry<Villager.Type>
Villager type. -
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
ADVANCEMENT
Server advancements. -
ART
Server art.- See Also:
-
ATTRIBUTE
Attribute.- See Also:
-
BIOME
Server biomes.- See Also:
-
BOSS_BARS
Custom boss bars. -
ENCHANTMENT
Server enchantments. -
ENTITY_TYPE
Server entity types.- See Also:
-
LOOT_TABLES
Default server loot tables.- See Also:
-
MATERIAL
Server materials.- See Also:
-
STATISTIC
Server statistics.- See Also:
-
STRUCTURE
Server structures.- See Also:
-
STRUCTURE_TYPE
Server structure types.- See Also:
-
SOUNDS
Sound keys.- See Also:
-
VILLAGER_PROFESSION
Villager profession.- See Also:
-
VILLAGER_TYPE
Villager type.- See Also:
-
MEMORY_MODULE_TYPE
Memory Keys.- See Also:
-
FLUID
Server fluids.- See Also:
-
FROG_VARIANT
Frog variants.- See Also:
-
GAME_EVENT
Game events.- See Also:
-
CONFIGURED_STRUCTURE
Deprecated, for removal: This API element is subject to removal in a future version.useSTRUCTURE
Configured structures.- See Also:
-
POTION_EFFECT_TYPE
Potion effect types.- See Also:
-
-
Method Details
-
get
Get the object by its key.- Parameters:
key
- non-null key- Returns:
- item or null if does not exist
-
match
Deprecated, 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 aNamespacedKey
object 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