T
- type of item in the registrypublic interface Registry<T extends Keyed> extends Iterable<T>
NamespacedKey
.Modifier and Type | Interface and Description |
---|---|
static class |
Registry.SimpleRegistry<T extends Enum<T> & Keyed> |
Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
T |
get(NamespacedKey key)
Get the object by its key.
|
forEach, iterator, spliterator
static final Registry<Advancement> ADVANCEMENT
static final Registry<KeyedBossBar> BOSS_BARS
static final Registry<Enchantment> ENCHANTMENT
static final Registry<EntityType> ENTITY_TYPE
EntityType
static final Registry<LootTables> LOOT_TABLES
LootTables
static final Registry<Villager.Profession> VILLAGER_PROFESSION
Villager.Profession
static final Registry<Villager.Type> VILLAGER_TYPE
Villager.Type
@Nullable T get(@NotNull NamespacedKey key)
key
- non-null keyCopyright © 2022. All rights reserved.