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.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintList<? extends ITerminalCraftingPlanFlat.IEntry>getId()List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>> longvoidMark this plan as errored.
-
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
TerminalCraftingJobStatus 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
- Returns:
- The initiator name of the crafting job.
-
setError
Mark this plan as errored.- Parameters:
unlocalizedError- An unlocalized error message.
-