public interface IIngredients
IRecipeCategory.setIngredients(Object, 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, Object, 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(IIngredientType<T> ingredientType)
Get all the inputs that have been set for the ingredientClass.
|
<T> java.util.List<java.util.List<T>> |
getOutputs(IIngredientType<T> ingredientType)
Get all the outputs that have been set for the ingredientClass.
|
<T> void |
setInput(IIngredientType<T> ingredientType,
T input)
Sets a single recipe input.
|
void |
setInputIngredients(java.util.List<net.minecraft.item.crafting.Ingredient> inputs)
Sets the recipe's inputs.
|
<T> void |
setInputLists(IIngredientType<T> ingredientType,
java.util.List<java.util.List<T>> inputs)
Sets the recipe's inputs.
|
<T> void |
setInputs(IIngredientType<T> ingredientType,
java.util.List<T> input)
Sets the recipe's inputs.
|
<T> void |
setOutput(IIngredientType<T> ingredientType,
T output)
Sets a single recipe output.
|
<T> void |
setOutputLists(IIngredientType<T> ingredientType,
java.util.List<java.util.List<T>> outputs)
Sets the recipe's outputs.
|
<T> void |
setOutputs(IIngredientType<T> ingredientType,
java.util.List<T> outputs)
Sets multiple recipe outputs.
|
void setInputIngredients(java.util.List<net.minecraft.item.crafting.Ingredient> inputs)
<T> void setInput(IIngredientType<T> ingredientType, T input)
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcinput
- The list of ingredients representing each input slot.<T> void setInputs(IIngredientType<T> ingredientType, java.util.List<T> input)
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcinput
- The list of ingredients representing each input slot.<T> void setInputLists(IIngredientType<T> ingredientType, java.util.List<java.util.List<T>> inputs)
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcinputs
- The outer list represents the slot, the inner list is a rotating list of ingredients in that slot.<T> void setOutput(IIngredientType<T> ingredientType, T output)
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcoutput
- The single ingredient representing the recipe output.<T> void setOutputs(IIngredientType<T> ingredientType, java.util.List<T> outputs)
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcoutputs
- The list of ingredients representing each output slot.<T> void setOutputLists(IIngredientType<T> ingredientType, java.util.List<java.util.List<T>> outputs)
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcoutputs
- The outer list represents the slot, the inner list is a rotating list of ingredients in that slot.<T> java.util.List<java.util.List<T>> getInputs(IIngredientType<T> ingredientType)
<T> java.util.List<java.util.List<T>> getOutputs(IIngredientType<T> ingredientType)