mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-15 17:54:50 +00:00
27 lines
891 B
Java
27 lines
891 B
Java
package codechicken.nei.recipe;
|
|
|
|
|
|
/**
|
|
*
|
|
* Implement this to show custom recipes in the usage viewer.
|
|
* See the default vanilla ones for more info.
|
|
*
|
|
*/
|
|
public interface IUsageHandler extends IRecipeHandler
|
|
{
|
|
/**
|
|
*
|
|
* @param inputId A String identifier representing the type of ingredients used. Eg. {"item", "fuel"}
|
|
* @param ingredients Objects representing the ingredients that matching recipes must contain.
|
|
* @return An instance of {@link IUsageHandler} configured with a list of recipes that contain matching input
|
|
*/
|
|
IUsageHandler getUsageHandler(String inputId, Object... ingredients);
|
|
|
|
/**
|
|
* See {@link TemplateRecipeHandler#getUsageAndCatalystHandler} for implementation
|
|
*/
|
|
default IUsageHandler getUsageAndCatalystHandler(String inputId, Object... ingredients) {
|
|
return getUsageHandler(inputId, ingredients);
|
|
}
|
|
}
|