@@ -23,7 +23,7 @@ public class TerminalCraftingPlanStatic<I> implements ITerminalCraftingPlan<I> {
2323 private final List <IPrototypedIngredient <?, ?>> outputs ;
2424 private TerminalCraftingJobStatus status ;
2525 private final long craftingQuantity ;
26- private final List <IPrototypedIngredient <?, ?>> storageIngredients ;
26+ private final List <IPrototypedIngredient <?, ?>> bufferedIngredients ;
2727 private final List <List <IPrototypedIngredient <?, ?>>> lastMissingIngredients ;
2828 private TerminalCraftingPlanStatic .Label label ;
2929 @ Nullable
@@ -38,7 +38,7 @@ public TerminalCraftingPlanStatic(I id,
3838 List <IPrototypedIngredient <?, ?>> outputs ,
3939 TerminalCraftingJobStatus status ,
4040 long craftingQuantity ,
41- List <IPrototypedIngredient <?, ?>> storageIngredients ,
41+ List <IPrototypedIngredient <?, ?>> bufferedIngredients ,
4242 List <List <IPrototypedIngredient <?, ?>>> lastMissingIngredients ,
4343 TerminalCraftingPlanStatic .Label label ,
4444 long tickDuration ,
@@ -49,7 +49,7 @@ public TerminalCraftingPlanStatic(I id,
4949 this .outputs = outputs ;
5050 this .status = status ;
5151 this .craftingQuantity = craftingQuantity ;
52- this .storageIngredients = storageIngredients ;
52+ this .bufferedIngredients = bufferedIngredients ;
5353 this .lastMissingIngredients = lastMissingIngredients ;
5454 this .label = label ;
5555 this .unlocalizedLabelOverride = null ;
@@ -84,8 +84,8 @@ public long getCraftingQuantity() {
8484 }
8585
8686 @ Override
87- public List <IPrototypedIngredient <?, ?>> getStorageIngredients () {
88- return storageIngredients ;
87+ public List <IPrototypedIngredient <?,?>> getBufferedIngredients () {
88+ return bufferedIngredients ;
8989 }
9090
9191 @ Override
@@ -231,7 +231,7 @@ protected static <I> void groupDependenciesByPrototype(IndexedEntries indexedEnt
231231 }
232232
233233 // Determine storage ingredients
234- for (IPrototypedIngredient <?, ?> output : plan .getStorageIngredients ()) {
234+ for (IPrototypedIngredient <?, ?> output : plan .getBufferedIngredients ()) {
235235 TerminalCraftingPlanFlatStatic .Entry entry = indexedEntries .get (output );
236236 long quantity = IndexedEntries .getQuantity (output );
237237 entry .setQuantityInStorage (entry .getQuantityInStorage () + quantity );
@@ -269,9 +269,9 @@ public static <I> void serialize(ValueOutput valueOutput, TerminalCraftingPlanSt
269269
270270 valueOutput .putLong ("craftingQuantity" , plan .getCraftingQuantity ());
271271
272- ValueOutput .ValueOutputList storageIngredients = valueOutput .childrenList ("storageIngredients " );
273- for (IPrototypedIngredient <?, ?> storageIngredient : plan .getStorageIngredients ()) {
274- IPrototypedIngredient .serialize (storageIngredients .addChild (), (PrototypedIngredient ) storageIngredient );
272+ ValueOutput .ValueOutputList bufferedIngredients = valueOutput .childrenList ("bufferedIngredients " );
273+ for (IPrototypedIngredient <?, ?> storageIngredient : plan .getBufferedIngredients ()) {
274+ IPrototypedIngredient .serialize (bufferedIngredients .addChild (), (PrototypedIngredient ) storageIngredient );
275275 }
276276
277277 ValueOutput .ValueOutputList lastMissingIngredients = valueOutput .childrenList ("lastMissingIngredients" );
@@ -315,9 +315,9 @@ public static <I> TerminalCraftingPlanStatic<I> deserialize(ValueInput valueInpu
315315
316316 long craftingQuantity = valueInput .getLong ("craftingQuantity" ).orElseThrow ();
317317
318- List <IPrototypedIngredient <?, ?>> storageIngredients = Lists .newArrayList ();
319- for (ValueInput storageIngredient : valueInput .childrenList ("storageIngredients " ).orElseThrow ()) {
320- storageIngredients .add (IPrototypedIngredient .deserialize (storageIngredient ));
318+ List <IPrototypedIngredient <?, ?>> bufferedIngredients = Lists .newArrayList ();
319+ for (ValueInput storageIngredient : valueInput .childrenList ("bufferedIngredients " ).orElseThrow ()) {
320+ bufferedIngredients .add (IPrototypedIngredient .deserialize (storageIngredient ));
321321 }
322322
323323 List <List <IPrototypedIngredient <?, ?>>> lastMissingIngredients = Lists .newArrayList ();
@@ -339,7 +339,7 @@ public static <I> TerminalCraftingPlanStatic<I> deserialize(ValueInput valueInpu
339339
340340 String initiatorName = valueInput .getStringOr ("initiatorName" , null );
341341
342- TerminalCraftingPlanStatic <I > plan = new TerminalCraftingPlanStatic <>(id , dependencies , outputs , status , craftingQuantity , storageIngredients ,
342+ TerminalCraftingPlanStatic <I > plan = new TerminalCraftingPlanStatic <>(id , dependencies , outputs , status , craftingQuantity , bufferedIngredients ,
343343 lastMissingIngredients , label , tickDuration , channel , initiatorName );
344344 if (unlocalizedLabelOverride != null ) {
345345 plan .unlocalizedLabelOverride = unlocalizedLabelOverride ;
0 commit comments