Package net.minecraft.core
Class RegistryAccess
java.lang.Object
net.minecraft.core.RegistryAccess
- Direct Known Subclasses:
RegistryAccess.RegistryHolder
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static RegistryAccess.RegistryHolder
private static org.apache.logging.log4j.Logger
(package private) static Map<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <E> void
addBuiltinElements(RegistryAccess.RegistryHolder p_123072_, RegistryReadOps.ResourceAccess.MemoryMap p_123073_, RegistryAccess.RegistryData<E> p_123074_)
builtin()
private static <E> void
copy(RegistryAccess.RegistryHolder p_123069_, Registry<E> p_123070_)
private static <R extends Registry<?>>
voidcopyBuiltin(RegistryAccess.RegistryHolder p_123079_, ResourceKey<R> p_123080_)
static void
load(RegistryAccess p_175501_, RegistryReadOps<?> p_175502_)
abstract <E> Optional<WritableRegistry<E>>
ownedRegistry(ResourceKey<? extends Registry<? extends E>> p_175507_)
<E> WritableRegistry<E>
ownedRegistryOrThrow(ResourceKey<? extends Registry<? extends E>> p_175513_)
private static <E> void
put(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> p_123054_, ResourceKey<? extends Registry<E>> p_123055_, com.mojang.serialization.Codec<E> p_123056_)
private static <E> void
put(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> p_123058_, ResourceKey<? extends Registry<E>> p_123059_, com.mojang.serialization.Codec<E> p_123060_, com.mojang.serialization.Codec<E> p_123061_)
private static <E> void
readRegistry(RegistryReadOps<?> p_175504_, RegistryAccess p_175505_, RegistryAccess.RegistryData<E> p_175506_)
registry(ResourceKey<? extends Registry<? extends E>> p_123085_)
<E> Registry<E>
registryOrThrow(ResourceKey<? extends Registry<? extends E>> p_175516_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
REGISTRIES
-
BUILTIN
-
-
Constructor Details
-
RegistryAccess
public RegistryAccess()
-
-
Method Details
-
ownedRegistry
public abstract <E> Optional<WritableRegistry<E>> ownedRegistry(ResourceKey<? extends Registry<? extends E>> p_175507_) -
ownedRegistryOrThrow
public <E> WritableRegistry<E> ownedRegistryOrThrow(ResourceKey<? extends Registry<? extends E>> p_175513_) -
registry
public <E> Optional<? extends Registry<E>> registry(ResourceKey<? extends Registry<? extends E>> p_123085_) -
registryOrThrow
-
put
private static <E> void put(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> p_123054_, ResourceKey<? extends Registry<E>> p_123055_, com.mojang.serialization.Codec<E> p_123056_) -
put
private static <E> void put(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> p_123058_, ResourceKey<? extends Registry<E>> p_123059_, com.mojang.serialization.Codec<E> p_123060_, com.mojang.serialization.Codec<E> p_123061_) -
builtin
-
addBuiltinElements
private static <E> void addBuiltinElements(RegistryAccess.RegistryHolder p_123072_, RegistryReadOps.ResourceAccess.MemoryMap p_123073_, RegistryAccess.RegistryData<E> p_123074_) -
copyBuiltin
private static <R extends Registry<?>> void copyBuiltin(RegistryAccess.RegistryHolder p_123079_, ResourceKey<R> p_123080_) -
copy
-
load
-
readRegistry
private static <E> void readRegistry(RegistryReadOps<?> p_175504_, RegistryAccess p_175505_, RegistryAccess.RegistryData<E> p_175506_)
-