Package net.minecraft.util.registry
Class SimpleRegistry<T>
java.lang.Object
net.minecraft.util.registry.Registry<T>
net.minecraft.util.registry.MutableRegistry<T>
net.minecraft.util.registry.SimpleRegistry<T>
- All Implemented Interfaces:
com.mojang.serialization.Keyable
,Iterable<T>
,IndexedIterable<T>
- Direct Known Subclasses:
DefaultedRegistry
- Mappings:
Namespace Name official gw
intermediary net/minecraft/class_2370
named net/minecraft/util/registry/SimpleRegistry
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable List<RegistryEntry.Reference<T>>
private final Object2IntMap<T>
private static final org.slf4j.Logger
private boolean
private final Map<Identifier,
RegistryEntry.Reference<T>> private final Map<RegistryKey<T>,
RegistryEntry.Reference<T>> private com.mojang.serialization.Lifecycle
private int
private final ObjectList<RegistryEntry.Reference<T>>
private Map<TagKey<T>,
RegistryEntryList.Named<T>> private @Nullable Map<T,
RegistryEntry.Reference<T>> private final Map<T,
RegistryEntry.Reference<T>> private final @Nullable Function<T,
RegistryEntry.Reference<T>> Fields inherited from class net.minecraft.util.registry.Registry
ACTIVITY, ACTIVITY_KEY, ATTRIBUTE, ATTRIBUTE_KEY, BIOME_KEY, BIOME_SOURCE, BIOME_SOURCE_KEY, BLOCK, BLOCK_ENTITY_TYPE, BLOCK_ENTITY_TYPE_KEY, BLOCK_KEY, BLOCK_PREDICATE_TYPE, BLOCK_PREDICATE_TYPE_KEY, BLOCK_STATE_PROVIDER_TYPE, BLOCK_STATE_PROVIDER_TYPE_KEY, CARVER, CARVER_KEY, CHUNK_GENERATOR, CHUNK_GENERATOR_KEY, CHUNK_GENERATOR_SETTINGS_KEY, CHUNK_STATUS, CHUNK_STATUS_KEY, CONFIGURED_CARVER_KEY, CONFIGURED_FEATURE_KEY, CONFIGURED_STRUCTURE_FEATURE_KEY, CUSTOM_STAT, CUSTOM_STAT_KEY, DENSITY_FUNCTION_KEY, DENSITY_FUNCTION_TYPE, DENSITY_FUNCTION_TYPE_KEY, DIMENSION_KEY, DIMENSION_TYPE_KEY, ENCHANTMENT, ENCHANTMENT_KEY, ENTITY_TYPE, ENTITY_TYPE_KEY, FEATURE, FEATURE_KEY, FEATURE_SIZE_TYPE, FEATURE_SIZE_TYPE_KEY, FLOAT_PROVIDER_TYPE, FLOAT_PROVIDER_TYPE_KEY, FLUID, FLUID_KEY, FOLIAGE_PLACER_TYPE, FOLIAGE_PLACER_TYPE_KEY, GAME_EVENT, GAME_EVENT_KEY, HEIGHT_PROVIDER_TYPE, HEIGHT_PROVIDER_TYPE_KEY, INT_PROVIDER_TYPE, INT_PROVIDER_TYPE_KEY, ITEM, ITEM_KEY, LOOT_CONDITION_TYPE, LOOT_CONDITION_TYPE_KEY, LOOT_FUNCTION_TYPE, LOOT_FUNCTION_TYPE_KEY, LOOT_NBT_PROVIDER_TYPE, LOOT_NBT_PROVIDER_TYPE_KEY, LOOT_NUMBER_PROVIDER_TYPE, LOOT_NUMBER_PROVIDER_TYPE_KEY, LOOT_POOL_ENTRY_TYPE, LOOT_POOL_ENTRY_TYPE_KEY, LOOT_SCORE_PROVIDER_TYPE, LOOT_SCORE_PROVIDER_TYPE_KEY, MATERIAL_CONDITION, MATERIAL_CONDITION_KEY, MATERIAL_RULE, MATERIAL_RULE_KEY, MEMORY_MODULE_TYPE, MEMORY_MODULE_TYPE_KEY, MENU_KEY, MOB_EFFECT_KEY, MOTIVE_KEY, NOISE_WORLDGEN, PAINTING_MOTIVE, PARTICLE_TYPE, PARTICLE_TYPE_KEY, PLACED_FEATURE_KEY, PLACEMENT_MODIFIER_TYPE, PLACEMENT_MODIFIER_TYPE_KEY, POINT_OF_INTEREST_TYPE, POINT_OF_INTEREST_TYPE_KEY, POS_RULE_TEST, POS_RULE_TEST_KEY, POSITION_SOURCE_TYPE, POSITION_SOURCE_TYPE_KEY, POTION, POTION_KEY, RECIPE_SERIALIZER, RECIPE_SERIALIZER_KEY, RECIPE_TYPE, RECIPE_TYPE_KEY, REGISTRIES, ROOT, ROOT_KEY, RULE_TEST, RULE_TEST_KEY, SCHEDULE, SCHEDULE_KEY, SCREEN_HANDLER, SENSOR_TYPE, SENSOR_TYPE_KEY, SOUND_EVENT, SOUND_EVENT_KEY, STAT_TYPE, STAT_TYPE_KEY, STATUS_EFFECT, STRUCTURE_FEATURE, STRUCTURE_FEATURE_KEY, STRUCTURE_PIECE, STRUCTURE_PIECE_KEY, STRUCTURE_PLACEMENT, STRUCTURE_PLACEMENT_KEY, STRUCTURE_POOL_ELEMENT, STRUCTURE_POOL_ELEMENT_KEY, STRUCTURE_POOL_KEY, STRUCTURE_PROCESSOR, STRUCTURE_PROCESSOR_KEY, STRUCTURE_PROCESSOR_LIST_KEY, STRUCTURE_SET_KEY, TREE_DECORATOR_TYPE, TREE_DECORATOR_TYPE_KEY, TRUNK_PLACER_TYPE, TRUNK_PLACER_TYPE_KEY, VILLAGER_PROFESSION, VILLAGER_PROFESSION_KEY, VILLAGER_TYPE, VILLAGER_TYPE_KEY, WORLD_KEY
Fields inherited from interface net.minecraft.util.collection.IndexedIterable
ABSENT_RAW_ID
-
Constructor Summary
ConstructorDescriptionSimpleRegistry
(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, @Nullable Function<T, RegistryEntry.Reference<T>> valueToEntryFunction) -
Method Summary
Modifier and TypeMethodDescriptionadd
(RegistryKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) private void
assertNotFrozen
(RegistryKey<T> key) void
boolean
contains
(RegistryKey<T> key) boolean
containsId
(Identifier id) boolean
containsTag
(TagKey<T> tag) createEntry
(T value) private RegistryEntryList.Named<T>
createNamedEntryList
(TagKey<T> tag) freeze()
get
(int index) get
(@Nullable Identifier id) get
(@Nullable RegistryKey<T> key) private List<RegistryEntry.Reference<T>>
getEntry
(int rawId) getEntry
(RegistryKey<T> key) com.mojang.serialization.Lifecycle
getEntryLifecycle
(T entry) Gets the lifecycle of a registry entry.getEntryList
(TagKey<T> tag) Set<Map.Entry<RegistryKey<T>,
T>> getIds()
com.mojang.serialization.Lifecycle
getOrCreateEntry
(RegistryKey<T> key) getOrCreateEntryList
(TagKey<T> tag) int
private static <T> T
getValue
(RegistryEntry.Reference<T> entry) boolean
isEmpty()
iterator()
void
populateTags
(Map<TagKey<T>, List<RegistryEntry<T>>> tagEntries) replace
(OptionalInt rawId, RegistryKey<T> key, T newEntry, com.mojang.serialization.Lifecycle lifecycle) If the given key is already present in the registry, replaces the entry associated with the given key with the new entry.set
(int rawId, RegistryKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) private RegistryEntry<T>
set
(int rawId, RegistryKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle, boolean checkDuplicateKeys) int
size()
Stream<com.mojang.datafixers.util.Pair<TagKey<T>,
RegistryEntryList.Named<T>>> Methods inherited from class net.minecraft.util.registry.Registry
createEntryCodec, entryOf, freezeRegistries, getCodec, getIndexedEntries, getKey, getOrEmpty, getOrEmpty, getOrThrow, iterateEntries, keys, method_39198, register, register, register, register, stream, toString, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrow
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
field_36635
private static final org.slf4j.Logger field_36635- Mappings:
Namespace Name Mixin selector official bC
Lgw;bC:Lorg/slf4j/Logger;
intermediary field_36635
Lnet/minecraft/class_2370;field_36635:Lorg/slf4j/Logger;
named field_36635
Lnet/minecraft/util/registry/SimpleRegistry;field_36635:Lorg/slf4j/Logger;
-
rawIdToEntry
- Mappings:
Namespace Name Mixin selector official bD
Lgw;bD:Lit/unimi/dsi/fastutil/objects/ObjectList;
intermediary field_26682
Lnet/minecraft/class_2370;field_26682:Lit/unimi/dsi/fastutil/objects/ObjectList;
named rawIdToEntry
Lnet/minecraft/util/registry/SimpleRegistry;rawIdToEntry:Lit/unimi/dsi/fastutil/objects/ObjectList;
-
entryToRawId
- Mappings:
Namespace Name Mixin selector official bE
Lgw;bE:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_26683
Lnet/minecraft/class_2370;field_26683:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
named entryToRawId
Lnet/minecraft/util/registry/SimpleRegistry;entryToRawId:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
idToEntry
- Mappings:
Namespace Name Mixin selector official bF
Lgw;bF:Ljava/util/Map;
intermediary field_11107
Lnet/minecraft/class_2370;field_11107:Ljava/util/Map;
named idToEntry
Lnet/minecraft/util/registry/SimpleRegistry;idToEntry:Ljava/util/Map;
-
keyToEntry
- Mappings:
Namespace Name Mixin selector official bG
Lgw;bG:Ljava/util/Map;
intermediary field_25067
Lnet/minecraft/class_2370;field_25067:Ljava/util/Map;
named keyToEntry
Lnet/minecraft/util/registry/SimpleRegistry;keyToEntry:Ljava/util/Map;
-
valueToEntry
- Mappings:
Namespace Name Mixin selector official bH
Lgw;bH:Ljava/util/Map;
intermediary field_36461
Lnet/minecraft/class_2370;field_36461:Ljava/util/Map;
named valueToEntry
Lnet/minecraft/util/registry/SimpleRegistry;valueToEntry:Ljava/util/Map;
-
entryToLifecycle
- Mappings:
Namespace Name Mixin selector official bI
Lgw;bI:Ljava/util/Map;
intermediary field_26731
Lnet/minecraft/class_2370;field_26731:Ljava/util/Map;
named entryToLifecycle
Lnet/minecraft/util/registry/SimpleRegistry;entryToLifecycle:Ljava/util/Map;
-
lifecycle
private com.mojang.serialization.Lifecycle lifecycle- Mappings:
Namespace Name Mixin selector official bJ
Lgw;bJ:Lcom/mojang/serialization/Lifecycle;
intermediary field_26732
Lnet/minecraft/class_2370;field_26732:Lcom/mojang/serialization/Lifecycle;
named lifecycle
Lnet/minecraft/util/registry/SimpleRegistry;lifecycle:Lcom/mojang/serialization/Lifecycle;
-
tagToEntryList
- Mappings:
Namespace Name Mixin selector official bK
Lgw;bK:Ljava/util/Map;
intermediary field_36462
Lnet/minecraft/class_2370;field_36462:Ljava/util/Map;
named tagToEntryList
Lnet/minecraft/util/registry/SimpleRegistry;tagToEntryList:Ljava/util/Map;
-
frozen
private boolean frozen- Mappings:
Namespace Name Mixin selector official bL
Lgw;bL:Z
intermediary field_36463
Lnet/minecraft/class_2370;field_36463:Z
named frozen
Lnet/minecraft/util/registry/SimpleRegistry;frozen:Z
-
valueToEntryFunction
- Mappings:
Namespace Name Mixin selector official bM
Lgw;bM:Ljava/util/function/Function;
intermediary field_36464
Lnet/minecraft/class_2370;field_36464:Ljava/util/function/Function;
named valueToEntryFunction
Lnet/minecraft/util/registry/SimpleRegistry;valueToEntryFunction:Ljava/util/function/Function;
-
unfrozenValueToEntry
- Mappings:
Namespace Name Mixin selector official bN
Lgw;bN:Ljava/util/Map;
intermediary field_36465
Lnet/minecraft/class_2370;field_36465:Ljava/util/Map;
named unfrozenValueToEntry
Lnet/minecraft/util/registry/SimpleRegistry;unfrozenValueToEntry:Ljava/util/Map;
-
cachedEntries
- Mappings:
Namespace Name Mixin selector official bO
Lgw;bO:Ljava/util/List;
intermediary field_36634
Lnet/minecraft/class_2370;field_36634:Ljava/util/List;
named cachedEntries
Lnet/minecraft/util/registry/SimpleRegistry;cachedEntries:Ljava/util/List;
-
nextId
private int nextId- Mappings:
Namespace Name Mixin selector official bP
Lgw;bP:I
intermediary field_11109
Lnet/minecraft/class_2370;field_11109:I
named nextId
Lnet/minecraft/util/registry/SimpleRegistry;nextId:I
-
-
Constructor Details
-
SimpleRegistry
public SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, @Nullable @Nullable Function<T, RegistryEntry.Reference<T>> valueToEntryFunction) - Mappings:
Namespace Name Mixin selector official <init>
Lgw;<init>(Lys;Lcom/mojang/serialization/Lifecycle;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/util/registry/SimpleRegistry;<init>(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Ljava/util/function/Function;)V
-
-
Method Details
-
getEntries
- Mappings:
Namespace Name Mixin selector official a
Lgw;a()Ljava/util/List;
intermediary method_40561
Lnet/minecraft/class_2370;method_40561()Ljava/util/List;
named getEntries
Lnet/minecraft/util/registry/SimpleRegistry;getEntries()Ljava/util/List;
-
assertNotFrozen
- Mappings:
Namespace Name Mixin selector official h
Lgw;h(Lys;)V
intermediary method_40274
Lnet/minecraft/class_2370;method_40274(Lnet/minecraft/class_5321;)V
named assertNotFrozen
Lnet/minecraft/util/registry/SimpleRegistry;assertNotFrozen(Lnet/minecraft/util/registry/RegistryKey;)V
-
set
public RegistryEntry<T> set(int rawId, RegistryKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) - Specified by:
set
in classMutableRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhi;a(ILys;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lgs;
intermediary method_10273
Lnet/minecraft/class_2385;method_10273(ILnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_6880;
named set
Lnet/minecraft/util/registry/MutableRegistry;set(ILnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/util/registry/RegistryEntry;
-
set
private RegistryEntry<T> set(int rawId, RegistryKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle, boolean checkDuplicateKeys) - Mappings:
Namespace Name Mixin selector official a
Lgw;a(ILys;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;Z)Lgs;
intermediary method_31051
Lnet/minecraft/class_2370;method_31051(ILnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;Z)Lnet/minecraft/class_6880;
named set
Lnet/minecraft/util/registry/SimpleRegistry;set(ILnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;Z)Lnet/minecraft/util/registry/RegistryEntry;
-
add
public RegistryEntry<T> add(RegistryKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) - Specified by:
add
in classMutableRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhi;a(Lys;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lgs;
intermediary method_10272
Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_6880;
named add
Lnet/minecraft/util/registry/MutableRegistry;add(Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/util/registry/RegistryEntry;
-
replace
public RegistryEntry<T> replace(OptionalInt rawId, RegistryKey<T> key, T newEntry, com.mojang.serialization.Lifecycle lifecycle) If the given key is already present in the registry, replaces the entry associated with the given key with the new entry. This method asserts that the raw ID is equal to the value already in the registry. The raw ID not being present may lead to buggy behavior.If the given key is not already present in the registry, adds the entry to the registry. If
rawId
is present, then this method gives the entry this raw ID. Otherwise, uses the next available ID.- Specified by:
replace
in classMutableRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhi;a(Ljava/util/OptionalInt;Lys;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lgs;
intermediary method_31062
Lnet/minecraft/class_2385;method_31062(Ljava/util/OptionalInt;Lnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_6880;
named replace
Lnet/minecraft/util/registry/MutableRegistry;replace(Ljava/util/OptionalInt;Lnet/minecraft/util/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/util/registry/RegistryEntry;
-
getId
- Specified by:
getId
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official b
Lhb;b(Ljava/lang/Object;)Lyt;
intermediary method_10221
Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/util/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;
-
getKey
- Specified by:
getKey
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official c
Lhb;c(Ljava/lang/Object;)Ljava/util/Optional;
intermediary method_29113
Lnet/minecraft/class_2378;method_29113(Ljava/lang/Object;)Ljava/util/Optional;
named getKey
Lnet/minecraft/util/registry/Registry;getKey(Ljava/lang/Object;)Ljava/util/Optional;
-
getRawId
- Specified by:
getRawId
in interfaceIndexedIterable<T>
- Specified by:
getRawId
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lgu;a(Ljava/lang/Object;)I
intermediary method_10206
Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)I
named getRawId
Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
-
get
- Specified by:
get
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhb;a(Lys;)Ljava/lang/Object;
intermediary method_29107
Lnet/minecraft/class_2378;method_29107(Lnet/minecraft/class_5321;)Ljava/lang/Object;
named get
Lnet/minecraft/util/registry/Registry;get(Lnet/minecraft/util/registry/RegistryKey;)Ljava/lang/Object;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lgu;a(I)Ljava/lang/Object;
intermediary method_10200
Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;
named get
Lnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
-
getEntry
-
getEntry
- Specified by:
getEntry
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official b
Lhb;b(Lys;)Ljava/util/Optional;
intermediary method_40264
Lnet/minecraft/class_2378;method_40264(Lnet/minecraft/class_5321;)Ljava/util/Optional;
named getEntry
Lnet/minecraft/util/registry/Registry;getEntry(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
-
getOrCreateEntry
- Specified by:
getOrCreateEntry
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official c
Lhb;c(Lys;)Lgs;
intermediary method_40268
Lnet/minecraft/class_2378;method_40268(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;
named getOrCreateEntry
Lnet/minecraft/util/registry/Registry;getOrCreateEntry(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/RegistryEntry;
-
size
public int size()- Mappings:
Namespace Name Mixin selector official b
Lgu;b()I
intermediary method_10204
Lnet/minecraft/class_2359;method_10204()I
named size
Lnet/minecraft/util/collection/IndexedIterable;size()I
-
getEntryLifecycle
Gets the lifecycle of a registry entry.- Specified by:
getEntryLifecycle
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official d
Lhb;d(Ljava/lang/Object;)Lcom/mojang/serialization/Lifecycle;
intermediary method_31139
Lnet/minecraft/class_2378;method_31139(Ljava/lang/Object;)Lcom/mojang/serialization/Lifecycle;
named getEntryLifecycle
Lnet/minecraft/util/registry/Registry;getEntryLifecycle(Ljava/lang/Object;)Lcom/mojang/serialization/Lifecycle;
-
getLifecycle
public com.mojang.serialization.Lifecycle getLifecycle()- Specified by:
getLifecycle
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official c
Lhb;c()Lcom/mojang/serialization/Lifecycle;
intermediary method_31138
Lnet/minecraft/class_2378;method_31138()Lcom/mojang/serialization/Lifecycle;
named getLifecycle
Lnet/minecraft/util/registry/Registry;getLifecycle()Lcom/mojang/serialization/Lifecycle;
-
iterator
-
get
- Specified by:
get
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhb;a(Lyt;)Ljava/lang/Object;
intermediary method_10223
Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/lang/Object;
named get
Lnet/minecraft/util/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
-
getValue
- Mappings:
Namespace Name Mixin selector official a
Lgw;a(Lgs$c;)Ljava/lang/Object;
intermediary method_40253
Lnet/minecraft/class_2370;method_40253(Lnet/minecraft/class_6880$class_6883;)Ljava/lang/Object;
named getValue
Lnet/minecraft/util/registry/SimpleRegistry;getValue(Lnet/minecraft/util/registry/RegistryEntry$Reference;)Ljava/lang/Object;
-
getIds
-
getEntrySet
- Specified by:
getEntrySet
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official e
Lhb;e()Ljava/util/Set;
intermediary method_29722
Lnet/minecraft/class_2378;method_29722()Ljava/util/Set;
named getEntrySet
Lnet/minecraft/util/registry/Registry;getEntrySet()Ljava/util/Set;
-
streamEntries
- Specified by:
streamEntries
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official f
Lhb;f()Ljava/util/stream/Stream;
intermediary method_40270
Lnet/minecraft/class_2378;method_40270()Ljava/util/stream/Stream;
named streamEntries
Lnet/minecraft/util/registry/Registry;streamEntries()Ljava/util/stream/Stream;
-
containsTag
- Specified by:
containsTag
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhb;a(Laif;)Z
intermediary method_40252
Lnet/minecraft/class_2378;method_40252(Lnet/minecraft/class_6862;)Z
named containsTag
Lnet/minecraft/util/registry/Registry;containsTag(Lnet/minecraft/tag/TagKey;)Z
-
streamTagsAndEntries
public Stream<com.mojang.datafixers.util.Pair<TagKey<T>,RegistryEntryList.Named<T>>> streamTagsAndEntries()- Specified by:
streamTagsAndEntries
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official g
Lhb;g()Ljava/util/stream/Stream;
intermediary method_40272
Lnet/minecraft/class_2378;method_40272()Ljava/util/stream/Stream;
named streamTagsAndEntries
Lnet/minecraft/util/registry/Registry;streamTagsAndEntries()Ljava/util/stream/Stream;
-
getOrCreateEntryList
- Specified by:
getOrCreateEntryList
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official b
Lhb;b(Laif;)Lgt$c;
intermediary method_40260
Lnet/minecraft/class_2378;method_40260(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;
named getOrCreateEntryList
Lnet/minecraft/util/registry/Registry;getOrCreateEntryList(Lnet/minecraft/tag/TagKey;)Lnet/minecraft/util/registry/RegistryEntryList$Named;
-
createNamedEntryList
- Mappings:
Namespace Name Mixin selector official e
Lgw;e(Laif;)Lgt$c;
intermediary method_40562
Lnet/minecraft/class_2370;method_40562(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;
named createNamedEntryList
Lnet/minecraft/util/registry/SimpleRegistry;createNamedEntryList(Lnet/minecraft/tag/TagKey;)Lnet/minecraft/util/registry/RegistryEntryList$Named;
-
streamTags
- Specified by:
streamTags
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official h
Lhb;h()Ljava/util/stream/Stream;
intermediary method_40273
Lnet/minecraft/class_2378;method_40273()Ljava/util/stream/Stream;
named streamTags
Lnet/minecraft/util/registry/Registry;streamTags()Ljava/util/stream/Stream;
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classMutableRegistry<T>
- Mappings:
Namespace Name Mixin selector official i
Lhi;i()Z
intermediary method_35863
Lnet/minecraft/class_2385;method_35863()Z
named isEmpty
Lnet/minecraft/util/registry/MutableRegistry;isEmpty()Z
-
getRandom
- Specified by:
getRandom
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhb;a(Ljava/util/Random;)Ljava/util/Optional;
intermediary method_10240
Lnet/minecraft/class_2378;method_10240(Ljava/util/Random;)Ljava/util/Optional;
named getRandom
Lnet/minecraft/util/registry/Registry;getRandom(Ljava/util/Random;)Ljava/util/Optional;
-
containsId
- Specified by:
containsId
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official c
Lhb;c(Lyt;)Z
intermediary method_10250
Lnet/minecraft/class_2378;method_10250(Lnet/minecraft/class_2960;)Z
named containsId
Lnet/minecraft/util/registry/Registry;containsId(Lnet/minecraft/util/Identifier;)Z
-
contains
- Specified by:
contains
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official d
Lhb;d(Lys;)Z
intermediary method_35842
Lnet/minecraft/class_2378;method_35842(Lnet/minecraft/class_5321;)Z
named contains
Lnet/minecraft/util/registry/Registry;contains(Lnet/minecraft/util/registry/RegistryKey;)Z
-
freeze
-
createEntry
- Specified by:
createEntry
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official e
Lhb;e(Ljava/lang/Object;)Lgs$c;
intermediary method_40269
Lnet/minecraft/class_2378;method_40269(Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;
named createEntry
Lnet/minecraft/util/registry/Registry;createEntry(Ljava/lang/Object;)Lnet/minecraft/util/registry/RegistryEntry$Reference;
-
getEntryList
- Specified by:
getEntryList
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official c
Lhb;c(Laif;)Ljava/util/Optional;
intermediary method_40266
Lnet/minecraft/class_2378;method_40266(Lnet/minecraft/class_6862;)Ljava/util/Optional;
named getEntryList
Lnet/minecraft/util/registry/Registry;getEntryList(Lnet/minecraft/tag/TagKey;)Ljava/util/Optional;
-
populateTags
- Specified by:
populateTags
in classRegistry<T>
- Mappings:
Namespace Name Mixin selector official a
Lhb;a(Ljava/util/Map;)V
intermediary method_40257
Lnet/minecraft/class_2378;method_40257(Ljava/util/Map;)V
named populateTags
Lnet/minecraft/util/registry/Registry;populateTags(Ljava/util/Map;)V
-
clearTags
public void clearTags()
-