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 classRegistry.SimpleRegistry<T extends Enum<T> & Keyed>
-
Field Summary
Fields Modifier and Type Field Description static Registry<Advancement>ADVANCEMENTServer advancements.static Registry<Art>ARTServer art.static Registry<Biome>BIOMEServer biomes.static Registry<KeyedBossBar>BOSS_BARSCustom boss bars.static Registry<Enchantment>ENCHANTMENTServer enchantments.static Registry<EntityType>ENTITY_TYPEServer entity types.static Registry<LootTables>LOOT_TABLESDefault server loot tables.static Registry<Material>MATERIALServer materials.static Registry<MemoryKey>MEMORY_MODULE_TYPEMemory Keys.static Registry<Statistic>STATISTICServer statistics.static Registry<Villager.Profession>VILLAGER_PROFESSIONVillager profession.static Registry<Villager.Type>VILLAGER_TYPEVillager type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget(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
-
-