@@ -25,7 +25,7 @@ public class TerminalCraftingPlanStatic<I> implements ITerminalCraftingPlan<I> {
2525 private final List <IPrototypedIngredient <?, ?>> outputs ;
2626 private TerminalCraftingJobStatus status ;
2727 private final long craftingQuantity ;
28- private final List <IPrototypedIngredient <?, ?>> storageIngredients ;
28+ private final List <IPrototypedIngredient <?, ?>> bufferedIngredients ;
2929 private final List <List <IPrototypedIngredient <?, ?>>> lastMissingIngredients ;
3030 private TerminalCraftingPlanStatic .Label label ;
3131 @ Nullable
@@ -40,7 +40,7 @@ public TerminalCraftingPlanStatic(I id,
4040 List <IPrototypedIngredient <?, ?>> outputs ,
4141 TerminalCraftingJobStatus status ,
4242 long craftingQuantity ,
43- List <IPrototypedIngredient <?, ?>> storageIngredients ,
43+ List <IPrototypedIngredient <?, ?>> bufferedIngredients ,
4444 List <List <IPrototypedIngredient <?, ?>>> lastMissingIngredients ,
4545 TerminalCraftingPlanStatic .Label label ,
4646 long tickDuration ,
@@ -51,7 +51,7 @@ public TerminalCraftingPlanStatic(I id,
5151 this .outputs = outputs ;
5252 this .status = status ;
5353 this .craftingQuantity = craftingQuantity ;
54- this .storageIngredients = storageIngredients ;
54+ this .bufferedIngredients = bufferedIngredients ;
5555 this .lastMissingIngredients = lastMissingIngredients ;
5656 this .label = label ;
5757 this .unlocalizedLabelOverride = null ;
@@ -86,8 +86,8 @@ public long getCraftingQuantity() {
8686 }
8787
8888 @ Override
89- public List <IPrototypedIngredient <?, ?>> getStorageIngredients () {
90- return storageIngredients ;
89+ public List <IPrototypedIngredient <?,?>> getBufferedIngredients () {
90+ return bufferedIngredients ;
9191 }
9292
9393 @ Override
@@ -233,7 +233,7 @@ protected static <I> void groupDependenciesByPrototype(IndexedEntries indexedEnt
233233 }
234234
235235 // Determine storage ingredients
236- for (IPrototypedIngredient <?, ?> output : plan .getStorageIngredients ()) {
236+ for (IPrototypedIngredient <?, ?> output : plan .getBufferedIngredients ()) {
237237 TerminalCraftingPlanFlatStatic .Entry entry = indexedEntries .get (output );
238238 long quantity = IndexedEntries .getQuantity (output );
239239 entry .setQuantityInStorage (entry .getQuantityInStorage () + quantity );
@@ -275,11 +275,11 @@ public static <I> CompoundTag serialize(HolderLookup.Provider lookupProvider, Te
275275
276276 tag .putLong ("craftingQuantity" , plan .getCraftingQuantity ());
277277
278- ListTag storageIngredients = new ListTag ();
279- for (IPrototypedIngredient <?, ?> storageIngredient : plan .getStorageIngredients ()) {
280- storageIngredients .add (IPrototypedIngredient .serialize (lookupProvider , (PrototypedIngredient ) storageIngredient ));
278+ ListTag bufferedIngredients = new ListTag ();
279+ for (IPrototypedIngredient <?, ?> storageIngredient : plan .getBufferedIngredients ()) {
280+ bufferedIngredients .add (IPrototypedIngredient .serialize (lookupProvider , (PrototypedIngredient ) storageIngredient ));
281281 }
282- tag .put ("storageIngredients " , storageIngredients );
282+ tag .put ("bufferedIngredients " , bufferedIngredients );
283283
284284 ListTag lastMissingIngredients = new ListTag ();
285285 for (List <IPrototypedIngredient <?, ?>> lastMissingIngredient : plan .getLastMissingIngredients ()) {
@@ -358,10 +358,10 @@ public static <I> TerminalCraftingPlanStatic<I> deserialize(HolderLookup.Provide
358358
359359 long craftingQuantity = tag .getLong ("craftingQuantity" );
360360
361- ListTag storageIngredientsTag = tag .getList ("storageIngredients " , Tag .TAG_COMPOUND );
362- List <IPrototypedIngredient <?, ?>> storageIngredients = Lists .newArrayListWithExpectedSize (storageIngredientsTag .size ());
363- for (Tag nbtBase : storageIngredientsTag ) {
364- storageIngredients .add (IPrototypedIngredient .deserialize (lookupProvider , (CompoundTag ) nbtBase ));
361+ ListTag bufferedIngredientsTag = tag .getList ("bufferedIngredients " , Tag .TAG_COMPOUND );
362+ List <IPrototypedIngredient <?, ?>> bufferedIngredients = Lists .newArrayListWithExpectedSize (bufferedIngredientsTag .size ());
363+ for (Tag nbtBase : bufferedIngredientsTag ) {
364+ bufferedIngredients .add (IPrototypedIngredient .deserialize (lookupProvider , (CompoundTag ) nbtBase ));
365365 }
366366
367367 ListTag lastMissingIngredientsTag = tag .getList ("lastMissingIngredients" , Tag .TAG_LIST );
@@ -391,7 +391,7 @@ public static <I> TerminalCraftingPlanStatic<I> deserialize(HolderLookup.Provide
391391 initiatorName = tag .getString ("initiatorName" );
392392 }
393393
394- TerminalCraftingPlanStatic <I > plan = new TerminalCraftingPlanStatic <>(id , dependencies , outputs , status , craftingQuantity , storageIngredients ,
394+ TerminalCraftingPlanStatic <I > plan = new TerminalCraftingPlanStatic <>(id , dependencies , outputs , status , craftingQuantity , bufferedIngredients ,
395395 lastMissingIngredients , label , tickDuration , channel , initiatorName );
396396 if (unlocalizedLabelOverride != null ) {
397397 plan .unlocalizedLabelOverride = unlocalizedLabelOverride ;
0 commit comments