Package net.minecraft.core
Class RegistryAccess.RegistryHolder
java.lang.Object
net.minecraft.core.RegistryAccess
net.minecraft.core.RegistryAccess.RegistryHolder
- Enclosing class:
- RegistryAccess
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.core.RegistryAccess
RegistryAccess.RegistryData<E>, RegistryAccess.RegistryHolder
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<RegistryAccess.RegistryHolder>
private Map<? extends ResourceKey<? extends Registry<?>>,? extends MappedRegistry<?>>
Fields inherited from class net.minecraft.core.RegistryAccess
REGISTRIES
-
Constructor Summary
ModifierConstructorDescriptionprivate
RegistryHolder(Map<? extends ResourceKey<? extends Registry<?>>,? extends MappedRegistry<?>> p_123117_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <K extends ResourceKey<? extends Registry<?>>, V extends MappedRegistry<?>>
com.mojang.serialization.Codec<RegistryAccess.RegistryHolder>captureMap(com.mojang.serialization.codecs.UnboundedMapCodec<K,V> p_123119_)
private static <E> MappedRegistry<?>
createRegistry(ResourceKey<? extends Registry<?>> p_123141_)
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
getNetworkCodec(ResourceKey<? extends Registry<E>> p_123138_)
private static <E> com.mojang.serialization.Codec<RegistryAccess.RegistryHolder>
<E> Optional<WritableRegistry<E>>
ownedRegistry(ResourceKey<? extends Registry<? extends E>> p_175528_)
Methods inherited from class net.minecraft.core.RegistryAccess
builtin, load, ownedRegistryOrThrow, registry, registryOrThrow
-
Field Details
-
NETWORK_CODEC
-
registries
private final Map<? extends ResourceKey<? extends Registry<?>>,? extends MappedRegistry<?>> registries
-
-
Constructor Details
-
RegistryHolder
public RegistryHolder() -
RegistryHolder
private RegistryHolder(Map<? extends ResourceKey<? extends Registry<?>>,? extends MappedRegistry<?>> p_123117_)
-
-
Method Details
-
makeNetworkCodec
-
captureMap
private static <K extends ResourceKey<? extends Registry<?>>, V extends MappedRegistry<?>> com.mojang.serialization.Codec<RegistryAccess.RegistryHolder> captureMap(com.mojang.serialization.codecs.UnboundedMapCodec<K,V> p_123119_) -
getNetworkCodec
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getNetworkCodec(ResourceKey<? extends Registry<E>> p_123138_) -
createRegistry
-
ownedRegistry
public <E> Optional<WritableRegistry<E>> ownedRegistry(ResourceKey<? extends Registry<? extends E>> p_175528_)- Specified by:
ownedRegistry
in classRegistryAccess
-