Class CreateRegistrateRegistrationCallback

java.lang.Object
com.simibubi.create.api.registrate.CreateRegistrateRegistrationCallback

public class CreateRegistrateRegistrationCallback extends Object
Register a callback for when an entry is added to any CreateRegistrate instance
  • 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

      public static void provideRegistrate(CreateRegistrate registrate)
      Provide a CreateRegistrate instance to be used by the API. Instances created by CreateRegistrate.create(String) will automatically be registered. It is illegal to call this method more than once for the same mod ID.