public interface IIngredients
It is filled out by IRecipeWrapper.getIngredients(IIngredients)
, and then used by JEI to figure out
what items are in the recipe, for lookups.
It is also passed back to IRecipeCategory.setRecipe(IRecipeLayout, IRecipeWrapper, IIngredients)
where it can be used to set ingredient groups in the recipe layout with IGuiIngredientGroup.set(IIngredients)
Modifier and Type | Method and Description |
---|---|
<T> java.util.List<java.util.List<T>> |
getInputs(java.lang.Class<T> ingredientClass)
Get all the inputs that have been set for the ingredientClass.
|
<T> java.util.List<T> |
getOutputs(java.lang.Class<T> ingredientClass)
Get all the outputs that have been set for the ingredientClass.
|
<T> void |
setInput(java.lang.Class<T> ingredientClass,
T input)
Sets a single recipe input.
|
<T> void |
setInputLists(java.lang.Class<T> ingredientClass,
java.util.List<java.util.List<T>> inputs)
Sets the recipe's inputs.
|
<T> void |
setInputs(java.lang.Class<T> ingredientClass,
java.util.List<T> input)
Sets the recipe's inputs.
|
<T> void |
setOutput(java.lang.Class<T> ingredientClass,
T output)
Sets a single recipe output.
|
<T> void |
setOutputs(java.lang.Class<T> ingredientClass,
java.util.List<T> outputs)
Sets multiple recipe outputs.
|
<T> void setInput(java.lang.Class<T> ingredientClass, T input)
ingredientClass
- The class of ingredient: ItemStack.class, FluidStack.class, etc.input
- The list of ingredients representing each input slot.<T> void setInputs(java.lang.Class<T> ingredientClass, java.util.List<T> input)
ingredientClass
- The class of ingredient: ItemStack.class, FluidStack.class, etc.input
- The list of ingredients representing each input slot.<T> void setInputLists(java.lang.Class<T> ingredientClass, java.util.List<java.util.List<T>> inputs)
ingredientClass
- The class of ingredient: ItemStack.class, FluidStack.class, etc.inputs
- The outer list represents the slot, the inner list is a rotating list of ingredients in that slot.<T> void setOutput(java.lang.Class<T> ingredientClass, T output)
ingredientClass
- The class of ingredient: ItemStack.class, FluidStack.class, etc.output
- The single ingredient representing the recipe output.<T> void setOutputs(java.lang.Class<T> ingredientClass, java.util.List<T> outputs)
ingredientClass
- The class of ingredient: ItemStack.class, FluidStack.class, etc.outputs
- The list of ingredients representing each output slot.<T> java.util.List<java.util.List<T>> getInputs(java.lang.Class<T> ingredientClass)
<T> java.util.List<T> getOutputs(java.lang.Class<T> ingredientClass)