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 Summary
Modifier and TypeMethodDescription<T> voidregisterRecipeComponent(IRecipeComponent<T> component) Registers the givenIRecipeComponent.
-
Method Details
-
registerRecipeComponent
Registers the givenIRecipeComponent.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
-