Package net.minecraft.core
Class RegistryAccess.WritableRegistryAccess
java.lang.Object
net.minecraft.core.RegistryAccess.WritableRegistryAccess
- All Implemented Interfaces:
RegistryAccess
,RegistryAccess.Writable
- Enclosing interface:
- RegistryAccess
public static final class RegistryAccess.WritableRegistryAccess
extends Object
implements RegistryAccess.Writable
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.core.RegistryAccess
RegistryAccess.Frozen, RegistryAccess.ImmutableRegistryAccess, RegistryAccess.RegistryData<E>, RegistryAccess.RegistryEntry<T>, RegistryAccess.Writable, RegistryAccess.WritableRegistryAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<? extends ResourceKey<? extends Registry<?>>,
? extends WritableRegistry<?>> Fields inherited from interface net.minecraft.core.RegistryAccess
BUILTIN, LOGGER, NETWORK_CODEC, REGISTRIES
-
Constructor Summary
ConstructorDescriptionWritableRegistryAccess
(Map<? extends ResourceKey<? extends Registry<?>>, ? extends WritableRegistry<?>> p_206259_) -
Method Summary
Modifier and TypeMethodDescriptionownedRegistry
(ResourceKey<? extends Registry<? extends E>> p_206263_) <E> Optional<WritableRegistry<E>>
ownedWritableRegistry
(ResourceKey<? extends Registry<? extends E>> p_206268_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.core.RegistryAccess
allElementsLifecycle, freeze, networkSafeRegistries, ownedRegistryOrThrow, registries, registry, registryOrThrow
Methods inherited from interface net.minecraft.core.RegistryAccess.Writable
ownedWritableRegistryOrThrow
-
Field Details
-
registries
private final Map<? extends ResourceKey<? extends Registry<?>>,? extends WritableRegistry<?>> registries
-
-
Constructor Details
-
WritableRegistryAccess
WritableRegistryAccess(Map<? extends ResourceKey<? extends Registry<?>>, ? extends WritableRegistry<?>> p_206259_)
-
-
Method Details
-
ownedRegistry
public <E> Optional<Registry<E>> ownedRegistry(ResourceKey<? extends Registry<? extends E>> p_206263_) - Specified by:
ownedRegistry
in interfaceRegistryAccess
-
ownedWritableRegistry
public <E> Optional<WritableRegistry<E>> ownedWritableRegistry(ResourceKey<? extends Registry<? extends E>> p_206268_) - Specified by:
ownedWritableRegistry
in interfaceRegistryAccess.Writable
-
ownedRegistries
- Specified by:
ownedRegistries
in interfaceRegistryAccess
-