Package org.moddingx.libx.registration
Class SetupContext
java.lang.Object
org.moddingx.libx.registration.RegistrationContext
org.moddingx.libx.registration.SetupContext
An extension of
RegistrationContext
that is used during setup phase.-
Constructor Summary
ConstructorDescriptionSetupContext
(ModXRegistration mod, net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceKey<?> key, Consumer<Runnable> enqueue) SetupContext
(RegistrationContext ctx, Consumer<Runnable> enqueue) -
Method Summary
Methods inherited from class org.moddingx.libx.registration.RegistrationContext
id, key, mod, registry
-
Constructor Details
-
SetupContext
-
SetupContext
public SetupContext(ModXRegistration mod, net.minecraft.resources.ResourceLocation id, @Nullable net.minecraft.resources.ResourceKey<?> key, Consumer<Runnable> enqueue)
-
-
Method Details
-
enqueue
Enqueues a givenRunnable
into the synchronous work queue.
-