Package net.minecraft.util.dynamic
Class RegistryOps.EntryLoader.Impl
java.lang.Object
net.minecraft.util.dynamic.RegistryOps.EntryLoader.Impl
- All Implemented Interfaces:
RegistryOps.EntryLoader
- Enclosing interface:
- RegistryOps.EntryLoader
public static final class RegistryOps.EntryLoader.Impl extends Object implements RegistryOps.EntryLoader
- Mappings:
Namespace Name official vy$b$a
intermediary net/minecraft/class_5382$class_5506$class_5507
named net/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.util.dynamic.RegistryOps.EntryLoader
RegistryOps.EntryLoader.Impl
-
Field Summary
Fields Modifier and Type Field Description private Map<RegistryKey<?>,com.mojang.serialization.Lifecycle>
entryToLifecycle
private Object2IntMap<RegistryKey<?>>
entryToRawId
private Map<RegistryKey<?>,JsonElement>
values
-
Constructor Summary
Constructors Constructor Description Impl()
-
Method Summary
Modifier and Type Method Description <E> void
add(DynamicRegistryManager.Impl registryManager, RegistryKey<E> registryKey, com.mojang.serialization.Encoder<E> encoder, int rawId, E e, com.mojang.serialization.Lifecycle lifecycle)
Collection<Identifier>
getKnownEntryPaths(RegistryKey<? extends Registry<?>> registryKey)
<E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,OptionalInt>>
load(com.mojang.serialization.DynamicOps<JsonElement> dynamicOps, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder)
-
Field Details
-
values
- Mappings:
Namespace Name Mixin selector official a
Lvy$b$a;a:Ljava/util/Map;
intermediary field_26741
Lnet/minecraft/class_5382$class_5506$class_5507;field_26741:Ljava/util/Map;
named values
Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;values:Ljava/util/Map;
-
entryToRawId
- Mappings:
Namespace Name Mixin selector official b
Lvy$b$a;b:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_26742
Lnet/minecraft/class_5382$class_5506$class_5507;field_26742:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
named entryToRawId
Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;entryToRawId:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
entryToLifecycle
- Mappings:
Namespace Name Mixin selector official c
Lvy$b$a;c:Ljava/util/Map;
intermediary field_26743
Lnet/minecraft/class_5382$class_5506$class_5507;field_26743:Ljava/util/Map;
named entryToLifecycle
Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;entryToLifecycle:Ljava/util/Map;
-
-
Constructor Details
-
Impl
public Impl()
-
-
Method Details
-
add
public <E> void add(DynamicRegistryManager.Impl registryManager, RegistryKey<E> registryKey, com.mojang.serialization.Encoder<E> encoder, int rawId, E e, com.mojang.serialization.Lifecycle lifecycle)- Mappings:
Namespace Name Mixin selector official a
Lvy$b$a;a(Lgo$b;Lwa;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
intermediary method_31159
Lnet/minecraft/class_5382$class_5506$class_5507;method_31159(Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
named add
Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader$Impl;add(Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Encoder;ILjava/lang/Object;Lcom/mojang/serialization/Lifecycle;)V
-
getKnownEntryPaths
- Specified by:
getKnownEntryPaths
in interfaceRegistryOps.EntryLoader
- Returns:
- A collection of file Identifiers of all known entries of the given registry. Note that these are file Identifiers for use in a resource manager, not the logical names of the entries.
- Mappings:
Namespace Name Mixin selector official a
Lvy$b;a(Lwa;)Ljava/util/Collection;
intermediary method_31156
Lnet/minecraft/class_5382$class_5506;method_31156(Lnet/minecraft/class_5321;)Ljava/util/Collection;
named getKnownEntryPaths
Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader;getKnownEntryPaths(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Collection;
-
load
public <E> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,OptionalInt>> load(com.mojang.serialization.DynamicOps<JsonElement> dynamicOps, RegistryKey<? extends Registry<E>> registryId, RegistryKey<E> entryId, com.mojang.serialization.Decoder<E> decoder)- Specified by:
load
in interfaceRegistryOps.EntryLoader
- Mappings:
Namespace Name Mixin selector official a
Lvy$b;a(Lcom/mojang/serialization/DynamicOps;Lwa;Lwa;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
intermediary method_31155
Lnet/minecraft/class_5382$class_5506;method_31155(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
named load
Lnet/minecraft/util/dynamic/RegistryOps$EntryLoader;load(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/registry/RegistryKey;Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Decoder;)Lcom/mojang/serialization/DataResult;
-