Interface ITerminalCraftingPlanFlat<I>

Type Parameters:
I - The type of identifier.
All Known Implementing Classes:
TerminalCraftingPlanFlatStatic

public interface ITerminalCraftingPlanFlat<I>
A job for crafting a given instance. This is a flattened representation of ITerminalCraftingPlan. 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.
    • getEntries

      List<? extends ITerminalCraftingPlanFlat.IEntry> getEntries()
      Returns:
      The flattened entries that are crafted as part of this plan.
    • getOutputs

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

      Returns:
      The job status.
    • 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.