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
public interface Registry<T extends Keyed> extends Iterable<T>
Represents a registry of Bukkit objects that may be retrieved by
NamespacedKey
.-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Registry.SimpleRegistry<T extends Enum<T> & Keyed>
-
Field Summary
Fields Modifier and Type Field Description static Registry<Advancement>
ADVANCEMENT
Server advancements.static Registry<Art>
ART
Server art.static Registry<Attribute>
ATTRIBUTE
Attribute.static Registry<Biome>
BIOME
Server biomes.static Registry<KeyedBossBar>
BOSS_BARS
Custom boss bars.static Registry<Enchantment>
ENCHANTMENT
Server enchantments.static Registry<EntityType>
ENTITY_TYPE
Server entity types.static Registry<Fluid>
FLUID
Server fluids.static Registry<LootTables>
LOOT_TABLES
Default server loot tables.static Registry<Material>
MATERIAL
Server materials.static Registry<MemoryKey>
MEMORY_MODULE_TYPE
Memory Keys.static Registry<Sound>
SOUNDS
Sound keys.static Registry<Statistic>
STATISTIC
Server statistics.static Registry<Villager.Profession>
VILLAGER_PROFESSION
Villager profession.static Registry<Villager.Type>
VILLAGER_TYPE
Villager type. -
Method Summary
Modifier and Type Method Description T
get(NamespacedKey key)
Get the object by its key.
-
Field Details
-
ADVANCEMENT
Server advancements. -
ART
Server art.- See Also:
Art
-
ATTRIBUTE
Attribute.- See Also:
Attribute
-
BIOME
Server biomes.- See Also:
Biome
-
BOSS_BARS
Custom boss bars. -
ENCHANTMENT
Server enchantments. -
ENTITY_TYPE
Server entity types.- See Also:
EntityType
-
LOOT_TABLES
Default server loot tables.- See Also:
LootTables
-
MATERIAL
Server materials.- See Also:
Material
-
STATISTIC
Server statistics.- See Also:
Statistic
-
SOUNDS
Sound keys.- See Also:
Sound
-
VILLAGER_PROFESSION
Villager profession.- See Also:
Villager.Profession
-
VILLAGER_TYPE
Villager type.- See Also:
Villager.Type
-
MEMORY_MODULE_TYPE
Memory Keys.- See Also:
MemoryKey
-
FLUID
Server fluids.- See Also:
Fluid
-
-
Method Details
-
get
Get the object by its key.- Parameters:
key
- non-null key- Returns:
- item or null if does not exist
-