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
TerminalCraftingJobStatus 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)
-
getStorageIngredients
List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>> getStorageIngredients()- Returns:
- The ingredients that will be used from storage.
-
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
- Returns:
- The initiator name of the crafting job.
-
setError
Mark this plan as errored.- Parameters:
unlocalizedError- An unlocalized error message.
-
flatten
ITerminalCraftingPlanFlat<I> flatten()- Returns:
- A flattened copy of this plan.
-