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)
IIngredientssetInput in interface IIngredientsingredientType - 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)
IIngredientssetInputLists in interface IIngredientsingredientType - 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)
IIngredientssetInputIngredients in interface IIngredientspublic <T> void setInputs(IIngredientType<T> ingredientType, java.util.List<T> inputs)
IIngredientssetInputs in interface IIngredientsingredientType - 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)
IIngredientssetOutput in interface IIngredientsingredientType - 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)
IIngredientssetOutputs in interface IIngredientsingredientType - 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)
IIngredientssetOutputLists in interface IIngredientsingredientType - 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)
IIngredientsgetInputs in interface IIngredientspublic <T> java.util.List<java.util.List<T>> getOutputs(IIngredientType<T> ingredientType)
IIngredientsgetOutputs in interface IIngredientspublic java.util.List<IngredientsForType<?>> getInputIngredients()
public java.util.List<IngredientsForType<?>> getOutputIngredients()