Class DynamicRegistryManagerSetupContextImpl
java.lang.Object
org.quiltmc.qsl.frozenblock.core.registry.impl.DynamicRegistryManagerSetupContextImpl
- All Implemented Interfaces:
net.minecraft.core.HolderLookup.Provider,net.minecraft.core.RegistryAccess,DynamicRegistryManagerSetupContext
@Internal
public class DynamicRegistryManagerSetupContextImpl
extends Object
implements DynamicRegistryManagerSetupContext, net.minecraft.core.RegistryAccess
Represents the context implementation for the
RegistryEvents.DYNAMIC_REGISTRY_SETUP event.
It is imperative that the passed registries are mutable to allow registration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.quiltmc.qsl.frozenblock.core.registry.api.event.DynamicRegistryManagerSetupContext
DynamicRegistryManagerSetupContext.RegistryMapNested classes/interfaces inherited from interface net.minecraft.core.RegistryAccess
net.minecraft.core.RegistryAccess.Frozen, net.minecraft.core.RegistryAccess.ImmutableRegistryAccess, net.minecraft.core.RegistryAccess.RegistryEntry<T> -
Field Summary
Fields inherited from interface net.minecraft.core.RegistryAccess
EMPTY, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionDynamicRegistryManagerSetupContextImpl(Stream<net.minecraft.core.WritableRegistry<?>> registries) -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<net.minecraft.core.RegistryAccess.RegistryEntry<?>> <E> @NotNull Optional<net.minecraft.core.Registry<E>> registry(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<? extends E>> key) @NotNull net.minecraft.core.RegistryAccessReturns the registry access that is being currently setup.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.quiltmc.qsl.frozenblock.core.registry.api.event.DynamicRegistryManagerSetupContext
getRegistries, monitor, register, withRegistriesMethods inherited from interface net.minecraft.core.HolderLookup.Provider
asGetterLookup, createSerializationContext, lookupOrThrowMethods inherited from interface net.minecraft.core.RegistryAccess
allRegistriesLifecycle, freeze, listRegistries, lookup, registryOrThrow
-
Constructor Details
-
DynamicRegistryManagerSetupContextImpl
public DynamicRegistryManagerSetupContextImpl(Stream<net.minecraft.core.WritableRegistry<?>> registries)
-
-
Method Details
-
registryManager
@NotNull public @NotNull net.minecraft.core.RegistryAccess registryManager()Description copied from interface:DynamicRegistryManagerSetupContextReturns the registry access that is being currently setup.- Specified by:
registryManagerin interfaceDynamicRegistryManagerSetupContext- Returns:
- the registry access that is being currently setup
-
registry
@NotNull public <E> @NotNull Optional<net.minecraft.core.Registry<E>> registry(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<? extends E>> key) - Specified by:
registryin interfacenet.minecraft.core.RegistryAccess
-
registries
- Specified by:
registriesin interfacenet.minecraft.core.RegistryAccess
-