Class CreateRegistrateRegistrationCallback
java.lang.Object
com.simibubi.create.api.registrate.CreateRegistrateRegistrationCallback
Register a callback for when an entry is added to any
CreateRegistrate instance-
Method Summary
Modifier and TypeMethodDescriptionstatic voidprovideRegistrate(CreateRegistrate registrate) Provide aCreateRegistrateinstance to be used by the API.static <R,T extends R>
voidregister(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<R>> registry, net.minecraft.resources.ResourceLocation id, com.tterrag.registrate.util.nullness.NonNullConsumer<? super T> callback)
-
Method Details
-
register
public static <R,T extends R> void register(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<R>> registry, net.minecraft.resources.ResourceLocation id, com.tterrag.registrate.util.nullness.NonNullConsumer<? super T> callback) -
provideRegistrate
Provide aCreateRegistrateinstance to be used by the API. Instances created byCreateRegistrate.create(String)will automatically be registered. It is illegal to call this method more than once for the same mod ID.
-