net.minecraft.core

public interface RegistryAccess

hc
net.minecraft.core.RegistryAccess
net.minecraft.class_5455
net.minecraft.util.registry.DynamicRegistryManager
net.minecraft.src.C_4706_
net.minecraft.core.IRegistryCustom

Field summary

Modifier and TypeField
org.slf4j.Logger
a
LOGGER
field_25918
LOGGER
f_123047_
Map<ResourceKey<? extends Registry<?>>, RegistryAccess$RegistryData<?>>
b
REGISTRIES
field_25919
INFOS
f_123048_
com.mojang.serialization.Codec<RegistryAccess>
c
NETWORK_CODEC
field_36469
CODEC
f_206151_
Supplier<RegistryAccess$Frozen>
d
BUILTIN
field_26733
BUILTIN
f_123049_

Method summary

Modifier and TypeMethod
<E> Optional<Registry<E>>
a(ys<? extends hb<? extends E>> arg0)
ownedRegistry(ResourceKey<? extends Registry<? extends E>> arg0)
method_30527(class_5321<? extends class_2378<? extends E>> arg0)
getOptionalManaged(RegistryKey<? extends Registry<? extends E>> key)
m_142664_(C_5264_<? extends C_4705_<? extends E>> arg0)
default <E> Registry<E>
b(ys<? extends hb<? extends E>> arg0)
ownedRegistryOrThrow(ResourceKey<? extends Registry<? extends E>> arg0)
method_33309(class_5321<? extends class_2378<? extends E>> arg0)
getManaged(RegistryKey<? extends Registry<? extends E>> key)
m_206191_(C_5264_<? extends C_4705_<? extends E>> arg0)
default <E> Optional<? extends Registry<E>>
c(ys<? extends hb<? extends E>> arg0)
registry(ResourceKey<? extends Registry<? extends E>> arg0)
method_33310(class_5321<? extends class_2378<? extends E>> arg0)
getOptional(RegistryKey<? extends Registry<? extends E>> key)
m_6632_(C_5264_<? extends C_4705_<? extends E>> arg0)
default <E> Registry<E>
d(ys<? extends hb<? extends E>> arg0)
registryOrThrow(ResourceKey<? extends Registry<? extends E>> arg0)
method_30530(class_5321<? extends class_2378<? extends E>> arg0)
get(RegistryKey<? extends Registry<? extends E>> key)
m_175515_(C_5264_<? extends C_4705_<? extends E>> arg0)
private static <E> void
a(com.google.common.collect.ImmutableMap$Builder<ys<? extends hb<?>>, hc$c<?>> arg0, ys<? extends hb<E>> arg1, com.mojang.serialization.Codec<E> arg2)
put(com.google.common.collect.ImmutableMap$Builder<ResourceKey<? extends Registry<?>>, RegistryAccess$RegistryData<?>> arg0, ResourceKey<? extends Registry<E>> arg1, com.mojang.serialization.Codec<E> arg2)
method_30520(com.google.common.collect.ImmutableMap$Builder<class_5321<? extends class_2378<?>>, class_5455$class_5456<?>> arg0, class_5321<? extends class_2378<E>> arg1, com.mojang.serialization.Codec<E> arg2)
register(com.google.common.collect.ImmutableMap$Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager$Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec)
m_123053_(com.google.common.collect.ImmutableMap$Builder<C_5264_<? extends C_4705_<?>>, C_4706_$C_4707_<?>> p_123054_, C_5264_<? extends C_4705_<E>> p_123055_, com.mojang.serialization.Codec<E> p_123056_)
private static <E> void
a(com.google.common.collect.ImmutableMap$Builder<ys<? extends hb<?>>, hc$c<?>> arg0, ys<? extends hb<E>> arg1, com.mojang.serialization.Codec<E> arg2, com.mojang.serialization.Codec<E> arg3)
put(com.google.common.collect.ImmutableMap$Builder<ResourceKey<? extends Registry<?>>, RegistryAccess$RegistryData<?>> arg0, ResourceKey<? extends Registry<E>> arg1, com.mojang.serialization.Codec<E> arg2, com.mojang.serialization.Codec<E> arg3)
method_31060(com.google.common.collect.ImmutableMap$Builder<class_5321<? extends class_2378<?>>, class_5455$class_5456<?>> arg0, class_5321<? extends class_2378<E>> arg1, com.mojang.serialization.Codec<E> arg2, com.mojang.serialization.Codec<E> arg3)
register(com.google.common.collect.ImmutableMap$Builder<RegistryKey<? extends Registry<?>>, DynamicRegistryManager$Info<?>> infosBuilder, RegistryKey<? extends Registry<E>> registryRef, com.mojang.serialization.Codec<E> entryCodec, com.mojang.serialization.Codec<E> networkEntryCodec)
m_123057_(com.google.common.collect.ImmutableMap$Builder<C_5264_<? extends C_4705_<?>>, C_4706_$C_4707_<?>> p_123058_, C_5264_<? extends C_4705_<E>> p_123059_, com.mojang.serialization.Codec<E> p_123060_, com.mojang.serialization.Codec<E> p_123061_)
static Iterable<RegistryAccess$RegistryData<?>>
a()
knownRegistries()
method_39674()
getInfos()
m_194613_()
Stream<RegistryAccess$RegistryEntry<?>>
b()
ownedRegistries()
method_40308()
streamManagedRegistries()
m_203610_()
private static Stream<RegistryAccess$RegistryEntry<Object>>
h()
globalRegistries()
method_40318()
streamStaticRegistries()
m_206202_()
default Stream<RegistryAccess$RegistryEntry<?>>
c()
registries()
method_40311()
streamAllRegistries()
m_206193_()
default Stream<RegistryAccess$RegistryEntry<?>>
d()
networkSafeRegistries()
method_40313()
streamSyncedRegistries()
m_206196_()
private static <E> com.mojang.serialization.Codec<RegistryAccess>
i()
makeNetworkCodec()
method_40320()
createCodec()
m_206205_()
private static <K extends ResourceKey<? extends Registry<?>>, V extends Registry<?>> com.mojang.serialization.Codec<RegistryAccess>
a(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> arg0)
captureMap(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> arg0)
method_40301(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> arg0)
createCodec(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> originalCodec)
m_206163_(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> p_206164_)
private Stream<RegistryAccess$RegistryEntry<?>>
j()
ownedNetworkableRegistries()
method_40321()
streamSyncedManagedRegistries()
m_206206_()
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
f(ys<? extends hb<E>> arg0)
getNetworkCodec(ResourceKey<? extends Registry<E>> arg0)
method_40319(class_5321<? extends class_2378<E>> arg0)
getNetworkEntryCodec(RegistryKey<? extends Registry<E>> registryKey)
m_206203_(C_5264_<? extends C_4705_<E>> p_206204_)
private static Map<ResourceKey<? extends Registry<?>>, ? extends WritableRegistry<?>>
k()
createFreshRegistries()
method_40323()
createMutableRegistries()
m_206209_()
private static RegistryAccess$Writable
l()
blankWriteable()
method_40325()
createMutableRegistryManager()
m_206212_()
static RegistryAccess$Frozen
a(hb<? extends hb<?>> arg0)
fromRegistryOfRegistries(Registry<? extends Registry<?>> arg0)
method_40302(class_2378<? extends class_2378<?>> arg0)
of(Registry<? extends Registry<?>> registries)
m_206165_(C_4705_<? extends C_4705_<?>> p_206166_)
static RegistryAccess$Writable
e()
builtinCopy()
method_40314()
createAndLoad()
m_206197_()
private static <E> void
a(yr$a arg0, hc$c<E> arg1)
addBuiltinElements(RegistryResourceAccess$InMemoryStorage arg0, RegistryAccess$RegistryData<E> arg1)
method_31141(class_5506$class_5507 arg0, class_5455$class_5456<E> arg1)
addEntriesToLoad(EntryLoader$Impl entryLoader, DynamicRegistryManager$Info<E> info)
m_211081_(C_183123_$C_183125_ p_211082_, C_4706_$C_4707_<E> p_211083_)
static void
a(hc$e arg0, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg1, yp arg2)
load(RegistryAccess$Writable arg0, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg1, RegistryLoader arg2)
method_30519(class_5455$class_6893 arg0, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg1, class_6900 arg2)
load(DynamicRegistryManager$Mutable dynamicRegistryManager, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops, RegistryLoader registryLoader)
m_206171_(C_4706_$C_203243_ p_206172_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206173_, C_203252_ p_206174_)
private static <E> void
a(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg0, yp$a arg1, hc$c<E> arg2)
readRegistry(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg0, RegistryLoader$Bound arg1, RegistryAccess$RegistryData<E> arg2)
method_30526(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg0, class_6900$class_6901 arg1, class_5455$class_5456<E> arg2)
load(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops, RegistryLoader$LoaderAccess loaderAccess, DynamicRegistryManager$Info<E> info)
m_206159_(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_206160_, C_203252_$C_203253_ p_206161_, C_4706_$C_4707_<E> p_206162_)
static RegistryAccess
a(com.mojang.serialization.Dynamic<?> arg0)
readFromDisk(com.mojang.serialization.Dynamic<?> arg0)
method_40299(com.mojang.serialization.Dynamic<?> arg0)
createDynamicRegistryManager(com.mojang.serialization.Dynamic<?> dynamic)
m_206154_(com.mojang.serialization.Dynamic<?> p_206155_)
static <E> Registry<E>
a(ys<? extends hb<? extends E>> arg0, com.mojang.serialization.Dynamic<?> arg1)
retrieveRegistry(ResourceKey<? extends Registry<? extends E>> arg0, com.mojang.serialization.Dynamic<?> arg1)
method_40307(class_5321<? extends class_2378<? extends E>> arg0, com.mojang.serialization.Dynamic<?> arg1)
createRegistry(RegistryKey<? extends Registry<? extends E>> registryRef, com.mojang.serialization.Dynamic<?> dynamic)
m_206184_(C_5264_<? extends C_4705_<? extends E>> p_206185_, com.mojang.serialization.Dynamic<?> p_206186_)
static <E> WritableRegistry<?>
e(ys<? extends hb<?>> arg0)
createRegistry(ResourceKey<? extends Registry<?>> arg0)
method_40317(class_5321<? extends class_2378<?>> arg0)
createSimpleRegistry(RegistryKey<? extends Registry<?>> registryRef)
m_206200_(C_5264_<? extends C_4705_<?>> p_206201_)
default RegistryAccess$Frozen
f()
freeze()
method_40316()
toImmutable()
m_203557_()
default com.mojang.serialization.Lifecycle
g()
allElementsLifecycle()
method_41201()
getRegistryLifecycle()
m_211816_()