Package net.minecraft.core
Class RegistryAccess.ImmutableRegistryAccess
java.lang.Object
net.minecraft.core.RegistryAccess.ImmutableRegistryAccess
- All Implemented Interfaces:
RegistryAccess
,RegistryAccess.Frozen
- Enclosing interface:
- RegistryAccess
public static final class RegistryAccess.ImmutableRegistryAccess
extends Object
implements RegistryAccess.Frozen
-
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 Registry<?>> Fields inherited from interface net.minecraft.core.RegistryAccess
BUILTIN, LOGGER, NETWORK_CODEC, REGISTRIES
-
Constructor Summary
ConstructorDescriptionImmutableRegistryAccess
(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> p_206225_) ImmutableRegistryAccess
(Stream<RegistryAccess.RegistryEntry<?>> p_206227_) -
Method Summary
Modifier and TypeMethodDescriptionownedRegistry
(ResourceKey<? extends Registry<? extends E>> p_206229_) 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, networkSafeRegistries, ownedRegistryOrThrow, registries, registry, registryOrThrow
Methods inherited from interface net.minecraft.core.RegistryAccess.Frozen
freeze
-
Field Details
-
registries
-
-
Constructor Details
-
ImmutableRegistryAccess
public ImmutableRegistryAccess(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> p_206225_) -
ImmutableRegistryAccess
ImmutableRegistryAccess(Stream<RegistryAccess.RegistryEntry<?>> p_206227_)
-
-
Method Details
-
ownedRegistry
public <E> Optional<Registry<E>> ownedRegistry(ResourceKey<? extends Registry<? extends E>> p_206229_) - Specified by:
ownedRegistry
in interfaceRegistryAccess
-
ownedRegistries
- Specified by:
ownedRegistries
in interfaceRegistryAccess
-