T
- type of item in the registryIterable<T>
Registry.SimpleRegistry
public 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(@NotNull 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 @NotNull NamespacedKey key)
key
- non-null keyCopyright © 2020. All rights reserved.