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