public static final class RegistryOps.EntryLoader.Impl extends Object implements RegistryOps.EntryLoader
RegistryOps.EntryLoader.Impl
Modifier and Type | Field and Description |
---|---|
private Map<RegistryKey<?>,com.mojang.serialization.Lifecycle> |
entryToLifecycle |
private it.unimi.dsi.fastutil.objects.Object2IntMap<RegistryKey<?>> |
entryToRawId |
private Map<RegistryKey<?>,JsonElement> |
values |
Constructor and Description |
---|
Impl() |
Modifier and Type | Method and Description |
---|---|
<E> void |
add(DynamicRegistryManager.Impl impl,
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resourceBacked
private final Map<RegistryKey<?>,JsonElement> values
private final it.unimi.dsi.fastutil.objects.Object2IntMap<RegistryKey<?>> entryToRawId
private final Map<RegistryKey<?>,com.mojang.serialization.Lifecycle> entryToLifecycle
public <E> void add(DynamicRegistryManager.Impl impl, RegistryKey<E> registryKey, com.mojang.serialization.Encoder<E> encoder, int rawId, E e, com.mojang.serialization.Lifecycle lifecycle)
public Collection<Identifier> getKnownEntryPaths(RegistryKey<? extends Registry<?>> registryKey)
getKnownEntryPaths
in interface RegistryOps.EntryLoader
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)
load
in interface RegistryOps.EntryLoader