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 class
Registry.SimpleRegistry<T extends Enum<T> & Keyed>
-
Field Summary
Modifier and TypeFieldDescriptionstatic Registry<Advancement>
Server advancements.Server art.Attribute.Server biomes.static Registry<KeyedBossBar>
Custom boss bars.static Registry<Enchantment>
Server enchantments.static Registry<EntityType>
Server entity types.Server fluids.Game events.static Registry<LootTables>
Default server loot tables.Server materials.Memory Keys.Sound keys.Server statistics.static Registry<Villager.Profession>
Villager profession.static 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:
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
-
GAME_EVENT
Game events.- See Also:
GameEvent
-
-
Method Details
-
get
Get the object by its key.- Parameters:
key
- non-null key- Returns:
- item or null if does not exist
-