Interface IRecipeComponentRegistrationHandler


public interface IRecipeComponentRegistrationHandler
Manages the registration of IRecipeComponents for CraftTweaker.

Refer to the recipe component documentation for more information.

Since:
10.0.0
  • Method Details

    • registerRecipeComponent

      <T> void registerRecipeComponent(IRecipeComponent<T> component)
      Registers the given IRecipeComponent.

      It is disallowed for two recipe components to be registered under the same id.

      Type Parameters:
      T - The type of objects pointed to by this recipe component
      Parameters:
      component - The component that needs to be registered.
      Throws:
      IllegalArgumentException - If a recipe component with the same ID already exists.
      Since:
      10.0.0