public class Ingredients extends java.lang.Object implements IIngredients
| Constructor and Description |
|---|
Ingredients() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Class,java.util.List> |
getInputIngredients() |
<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.
|
java.util.Map<java.lang.Class,java.util.List> |
getOutputIngredients() |
<T> java.util.List<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 |
setOutputLists(java.lang.Class<T> ingredientClass,
java.util.List<java.util.List<T>> outputs)
Sets the recipe's outputs.
|
<T> void |
setOutputs(java.lang.Class<T> ingredientClass,
java.util.List<T> outputs)
Sets multiple recipe outputs.
|
public <T> void setInput(java.lang.Class<T> ingredientClass,
T input)
IIngredientssetInput in interface IIngredientsingredientClass - The class of ingredient: ItemStack.class, FluidStack.class, etc.input - The list of ingredients representing each input slot.public <T> void setInputLists(java.lang.Class<T> ingredientClass,
java.util.List<java.util.List<T>> inputs)
IIngredientssetInputLists in interface IIngredientsingredientClass - 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.public <T> void setInputs(java.lang.Class<T> ingredientClass,
java.util.List<T> input)
IIngredientssetInputs in interface IIngredientsingredientClass - The class of ingredient: ItemStack.class, FluidStack.class, etc.input - The list of ingredients representing each input slot.public <T> void setOutput(java.lang.Class<T> ingredientClass,
T output)
IIngredientssetOutput in interface IIngredientsingredientClass - The class of ingredient: ItemStack.class, FluidStack.class, etc.output - The single ingredient representing the recipe output.public <T> void setOutputs(java.lang.Class<T> ingredientClass,
java.util.List<T> outputs)
IIngredientssetOutputs in interface IIngredientsingredientClass - The class of ingredient: ItemStack.class, FluidStack.class, etc.outputs - The list of ingredients representing each output slot.public <T> void setOutputLists(java.lang.Class<T> ingredientClass,
java.util.List<java.util.List<T>> outputs)
IIngredientssetOutputLists in interface IIngredientsingredientClass - The class of ingredient: ItemStack.class, FluidStack.class, etc.outputs - 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(java.lang.Class<T> ingredientClass)
IIngredientsgetInputs in interface IIngredientspublic <T> java.util.List<java.util.List<T>> getOutputs(java.lang.Class<T> ingredientClass)
IIngredientsgetOutputs in interface IIngredientspublic java.util.Map<java.lang.Class,java.util.List> getInputIngredients()
public java.util.Map<java.lang.Class,java.util.List> getOutputIngredients()