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 byNamespacedKey
.
-
-
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<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<LootTables>
LOOT_TABLES
Default server loot tables.static Registry<Material>
MATERIAL
Server materials.static Registry<MemoryKey>
MEMORY_MODULE_TYPE
Memory 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get(NamespacedKey key)
Get the object by its key.-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Field Detail
-
ADVANCEMENT
static final Registry<Advancement> ADVANCEMENT
Server advancements.
-
BOSS_BARS
static final Registry<KeyedBossBar> BOSS_BARS
Custom boss bars.
-
ENCHANTMENT
static final Registry<Enchantment> ENCHANTMENT
Server enchantments.
-
ENTITY_TYPE
static final Registry<EntityType> ENTITY_TYPE
Server entity types.- See Also:
EntityType
-
LOOT_TABLES
static final Registry<LootTables> LOOT_TABLES
Default server loot tables.- See Also:
LootTables
-
VILLAGER_PROFESSION
static final Registry<Villager.Profession> VILLAGER_PROFESSION
Villager profession.- See Also:
Villager.Profession
-
VILLAGER_TYPE
static final Registry<Villager.Type> VILLAGER_TYPE
Villager type.- See Also:
Villager.Type
-
-
Method Detail
-
get
@Nullable T get(@NotNull NamespacedKey key)
Get the object by its key.- Parameters:
key
- non-null key- Returns:
- item or null if does not exist
-
-