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 Details

    • TerminalCraftingOptionRecipeDefinition

      public TerminalCraftingOptionRecipeDefinition(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent, org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition prioritizedRecipe)
  • Method Details

    • getOutputs

      public Iterator<T> getOutputs()
      Specified by:
      getOutputs in interface ITerminalCraftingOption<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:
      getOutputComponents in interface ITerminalCraftingOption<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: ITerminalCraftingOption
      The outputs of this crafting job option for the given ingredient component.
      Specified by:
      getOutputs in interface ITerminalCraftingOption<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:
      getInputComponents in interface ITerminalCraftingOption<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: ITerminalCraftingOption
      The inputs of this crafting job option for the given ingredient component.
      Specified by:
      getInputs in interface ITerminalCraftingOption<T>
      Type Parameters:
      T1 - The instance type.
      M - The matching condition parameter, may be Void.
      Parameters:
      ingredientComponent - An ingredient component,
      Returns:
      The inputs
    • getIngredientComponent

      public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> getIngredientComponent()
    • getRecipe

      public org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition getRecipe()
    • compareTo

      public int compareTo(ITerminalCraftingOption<T> o)
      Specified by:
      compareTo in interface Comparable<T>