Interface ITerminalCraftingPlan<I>

Type Parameters:
I - The type of identifier.
All Known Implementing Classes:
TerminalCraftingPlanCraftingJobDependencyGraph, TerminalCraftingPlanStatic

public interface ITerminalCraftingPlan<I>
A job for crafting a given instance. It is possible that a job requires no actual crafting, but can be fetched from storage completely.
  • Method Details

    • getId

      I getId()
      Returns:
      The unique id of this plan.
    • getDependencies

      List<ITerminalCraftingPlan<I>> getDependencies()
      Returns:
      The dependencies of this job.
    • getOutputs

      List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>> getOutputs()
      Returns:
      The output instances of this job.
    • getStatus

      Returns:
      The job status.
    • getCraftingQuantity

      long getCraftingQuantity()
      Returns:
      The number of instances that will be crafted.. (These are expected to become available later on because of a dependency job)
    • getBufferedIngredients

      List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>> getBufferedIngredients()
      Returns:
      The ingredients within the storage buffer.
    • getLastMissingIngredients

      List<List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>>> getLastMissingIngredients()
      Returns:
      The ingredients that were missing for 1 job amount. This should contain something when the status is TerminalCraftingJobStatus.PENDING_INPUTS. The inner list represents alternatives.
    • getUnlocalizedLabel

      String getUnlocalizedLabel()
      Returns:
      A visual label for this plan, such as an error or plan type.
    • getTickDuration

      long getTickDuration()
      Returns:
      The tick duration for this job. -1 indicates no duration.
    • getChannel

      int getChannel()
      Returns:
      The channel id, or -1 for non-applicable.
    • getInitiatorName

      @Nullable String getInitiatorName()
      Returns:
      The initiator name of the crafting job.
    • setError

      void setError(String unlocalizedError)
      Mark this plan as errored.
      Parameters:
      unlocalizedError - An unlocalized error message.
    • flatten

      Returns:
      A flattened copy of this plan.