public class Ingredients extends java.lang.Object implements IIngredients
Constructor and Description |
---|
Ingredients() |
Modifier and Type | Method and Description |
---|---|
java.util.List<IngredientsForType<?>> |
getInputIngredients() |
<T> java.util.List<java.util.List<T>> |
getInputs(IIngredientType<T> ingredientType)
Get all the inputs that have been set for the ingredientClass.
|
java.util.List<IngredientsForType<?>> |
getOutputIngredients() |
<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> inputs)
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.
|
public <T> void setInput(IIngredientType<T> ingredientType, T input)
IIngredients
setInput
in interface IIngredients
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcinput
- The list of ingredients representing each input slot.public <T> void setInputLists(IIngredientType<T> ingredientType, java.util.List<java.util.List<T>> inputs)
IIngredients
setInputLists
in interface IIngredients
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.public void setInputIngredients(java.util.List<net.minecraft.item.crafting.Ingredient> inputs)
IIngredients
setInputIngredients
in interface IIngredients
public <T> void setInputs(IIngredientType<T> ingredientType, java.util.List<T> inputs)
IIngredients
setInputs
in interface IIngredients
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcinputs
- The list of ingredients representing each input slot.public <T> void setOutput(IIngredientType<T> ingredientType, T output)
IIngredients
setOutput
in interface IIngredients
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcoutput
- The single ingredient representing the recipe output.public <T> void setOutputs(IIngredientType<T> ingredientType, java.util.List<T> outputs)
IIngredients
setOutputs
in interface IIngredients
ingredientType
- The type of ingredient: VanillaTypes.ITEM
, VanillaTypes.FLUID
, etcoutputs
- The list of ingredients representing each output slot.public <T> void setOutputLists(IIngredientType<T> ingredientType, java.util.List<java.util.List<T>> outputs)
IIngredients
setOutputLists
in interface IIngredients
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.public <T> java.util.List<java.util.List<T>> getInputs(IIngredientType<T> ingredientType)
IIngredients
getInputs
in interface IIngredients
public <T> java.util.List<java.util.List<T>> getOutputs(IIngredientType<T> ingredientType)
IIngredients
getOutputs
in interface IIngredients
public java.util.List<IngredientsForType<?>> getInputIngredients()
public java.util.List<IngredientsForType<?>> getOutputIngredients()