Class TerminalCraftingOptionRecipeDefinition<T,M>
java.lang.Object
org.cyclops.integratedterminals.modcompat.integratedcrafting.TerminalCraftingOptionRecipeDefinition<T,M>
- Type Parameters:
T- The instance type.M- The matching condition parameter, may be Void.
- All Implemented Interfaces:
Comparable<ITerminalCraftingOption<T>>,ITerminalCraftingOption<T>
public class TerminalCraftingOptionRecipeDefinition<T,M>
extends Object
implements ITerminalCraftingOption<T>
Identifies a crafting job possibility based on a
IRecipeDefinition.-
Constructor Summary
ConstructorsConstructorDescriptionTerminalCraftingOptionRecipeDefinition(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> ingredientComponent, org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition prioritizedRecipe) -
Method Summary
Modifier and TypeMethodDescriptionintCollection<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>> <T1,M> Collection<T1> getInputs(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T1, M> ingredientComponent) The inputs of this crafting job option for the given ingredient component.Collection<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>> <T1,M> Collection<T1> getOutputs(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T1, M> ingredientComponent) The outputs of this crafting job option for the given ingredient component.org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition
-
Constructor Details
-
TerminalCraftingOptionRecipeDefinition
-
-
Method Details
-
getOutputs
- Specified by:
getOutputsin interfaceITerminalCraftingOption<T>- Returns:
- The outputs of this crafting job option for the configured ingredient component.
-
getOutputComponents
public Collection<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>> getOutputComponents()- Specified by:
getOutputComponentsin interfaceITerminalCraftingOption<T>- Returns:
- All output components.
-
getOutputs
public <T1,M> Collection<T1> getOutputs(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T1, M> ingredientComponent) Description copied from interface:ITerminalCraftingOptionThe outputs of this crafting job option for the given ingredient component.- Specified by:
getOutputsin interfaceITerminalCraftingOption<T>- Type Parameters:
T1- The instance type.M- The matching condition parameter, may be Void.- Parameters:
ingredientComponent- An ingredient component,- Returns:
- The outputs
-
getInputComponents
public Collection<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>> getInputComponents()- Specified by:
getInputComponentsin interfaceITerminalCraftingOption<T>- Returns:
- All input components.
-
getInputs
public <T1,M> Collection<T1> getInputs(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T1, M> ingredientComponent) Description copied from interface:ITerminalCraftingOptionThe inputs of this crafting job option for the given ingredient component.- Specified by:
getInputsin interfaceITerminalCraftingOption<T>- Type Parameters:
T1- The instance type.M- The matching condition parameter, may be Void.- Parameters:
ingredientComponent- An ingredient component,- Returns:
- The inputs
-
getIngredientComponent
-
getRecipe
public org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition getRecipe() -
compareTo
- Specified by:
compareToin interfaceComparable<T>
-