public static final class DynamicRegistryManager.Impl extends DynamicRegistryManager
DynamicRegistryManager.Impl, DynamicRegistryManager.Info<E>
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<DynamicRegistryManager.Impl> |
CODEC |
private Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> |
registries |
Modifier | Constructor and Description |
---|---|
|
Impl() |
private |
Impl(Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries) |
Modifier and Type | Method and Description |
---|---|
private static <E> SimpleRegistry<?> |
createRegistry(RegistryKey<? extends Registry<?>> registryRef) |
private static <K extends RegistryKey<? extends Registry<?>>,V extends SimpleRegistry<?>> |
fromRegistryCodecs(com.mojang.serialization.codecs.UnboundedMapCodec<K,V> unboundedMapCodec) |
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> |
getDataResultForCodec(RegistryKey<? extends Registry<E>> registryRef) |
<E> Optional<MutableRegistry<E>> |
getOptional(RegistryKey<? extends Registry<E>> key)
Retrieves a registry optionally from this manager.
|
private static <E> com.mojang.serialization.Codec<DynamicRegistryManager.Impl> |
setupCodec() |
create, get, getDimensionTypes, load
public static final com.mojang.serialization.Codec<DynamicRegistryManager.Impl> CODEC
private final Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries
public Impl()
private Impl(Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries)
private static <E> com.mojang.serialization.Codec<DynamicRegistryManager.Impl> setupCodec()
private static <K extends RegistryKey<? extends Registry<?>>,V extends SimpleRegistry<?>> com.mojang.serialization.Codec<DynamicRegistryManager.Impl> fromRegistryCodecs(com.mojang.serialization.codecs.UnboundedMapCodec<K,V> unboundedMapCodec)
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getDataResultForCodec(RegistryKey<? extends Registry<E>> registryRef)
private static <E> SimpleRegistry<?> createRegistry(RegistryKey<? extends Registry<?>> registryRef)
public <E> Optional<MutableRegistry<E>> getOptional(RegistryKey<? extends Registry<E>> key)
getOptional
in class DynamicRegistryManager