Skip to content

Commit 186d06f

Browse files
committed
Merge remote-tracking branch 'origin/master-1.21-lts' into master-1.21
2 parents a88d4ad + 5d8de07 commit 186d06f

11 files changed

Lines changed: 86 additions & 48 deletions

File tree

CHANGELOG-1.20.1.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# Changelog for Minecraft 1.20.1
22
All notable changes to this project will be documented in this file.
33

4+
<a name="1.20.1-1.6.15"></a>
5+
## [1.20.1-1.6.15](/compare/1.20.1-1.6.14...1.20.1-1.6.15) - 2025-12-31 15:10:58
6+
7+
8+
### Changed
9+
* Update to new crafting storage in Integrated Crafting
10+
11+
Required for CyclopsMC/IntegratedCrafting#112
12+
413
<a name="1.20.1-1.6.14"></a>
5-
## [1.20.1-1.6.14](/compare/1.20.1-1.6.13...1.20.1-1.6.14) - 2025-11-24 16:50:13
14+
## [1.20.1-1.6.14](/compare/1.20.1-1.6.13...1.20.1-1.6.14) - 2025-11-24 16:50:13 +0100
615

716

817
### Fixed

CHANGELOG-1.21.1.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# Changelog for Minecraft 1.21.1
22
All notable changes to this project will be documented in this file.
33

4+
<a name="1.21.1-1.6.22"></a>
5+
## [1.21.1-1.6.22](https://github.com/CyclopsMC/IntegratedTerminals/compare/1.21.1-1.6.21...1.21.1-1.6.22) - 2025-12-31 15:15:47
6+
7+
8+
### Added
9+
* Add translations through Crowdin (#187)
10+
11+
### Changed
12+
* Update to new crafting storage in Integrated Crafting
13+
14+
Required for CyclopsMC/IntegratedCrafting#112
15+
416
<a name="1.21.1-1.6.21"></a>
5-
## [1.21.1-1.6.21](https://github.com/CyclopsMC/IntegratedTerminals/compare/1.21.1-1.6.20...1.21.1-1.6.21) - 2025-11-24 16:52:10
17+
## [1.21.1-1.6.21](https://github.com/CyclopsMC/IntegratedTerminals/compare/1.21.1-1.6.20...1.21.1-1.6.21) - 2025-11-24 16:52:10 +0100
618

719

820
### Fixed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ org.gradle.caching=true
3232

3333
# Dependencies
3434
cyclopscore_version=1.25.5-871
35-
integrateddynamics_version=1.24.1-1419
35+
integrateddynamics_version=1.24.1-1455
3636
integratedterminalscompat_version=1.0.0-137
37-
integratedcrafting_version=1.1.13-412
37+
integratedcrafting_version=1.1.13-430
3838
commoncapabilities_version=2.9.7-303
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.19.4 or higher.
3+
4+
Changes:
5+
* Update to new crafting storage in Integrated Crafting
6+
7+
Required for CyclopsMC/IntegratedCrafting#112
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.25.1 or higher.
3+
4+
Additions:
5+
* Add translations through Crowdin (#187)
6+
7+
Changes:
8+
* Update to new crafting storage in Integrated Crafting
9+
10+
Required for CyclopsMC/IntegratedCrafting#112

src/main/java/org/cyclops/integratedterminals/api/terminalstorage/crafting/ITerminalCraftingPlan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public interface ITerminalCraftingPlan<I> {
4343
public long getCraftingQuantity();
4444

4545
/**
46-
* @return The ingredients that will be used from storage.
46+
* @return The ingredients within the storage buffer.
4747
*/
48-
public List<IPrototypedIngredient<?, ?>> getStorageIngredients();
48+
public List<IPrototypedIngredient<?, ?>> getBufferedIngredients();
4949

5050
/**
5151
* @return The ingredients that were missing for 1 job amount.

src/main/java/org/cyclops/integratedterminals/api/terminalstorage/crafting/TerminalCraftingPlanStatic.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

src/main/java/org/cyclops/integratedterminals/client/gui/container/component/GuiCraftingPlan.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,14 @@ public static List<GuiCraftingPlan.Element> getElements(ITerminalCraftingPlan<?>
309309

310310
protected static void addElements(@Nullable Element parent, int indent, ITerminalCraftingPlan<?> craftingPlan, List<GuiCraftingPlan.Element> elements) {
311311
boolean valid = craftingPlan.getStatus().isValid()
312-
|| (!craftingPlan.getStorageIngredients().isEmpty() || !craftingPlan.getDependencies().isEmpty());
312+
|| (!craftingPlan.getBufferedIngredients().isEmpty() || !craftingPlan.getDependencies().isEmpty());
313313
int elementId = Objects.hash(craftingPlan.getId()) * 100;
314314
Element currentElement = new Element(
315315
elementId++,
316316
indent,
317-
(List) craftingPlan.getOutputs()
317+
craftingPlan.getOutputs()
318318
.stream()
319-
.map(Collections::singletonList)
319+
.map(i -> Collections.singletonList((IPrototypedIngredient) i))
320320
.collect(Collectors.toList()),
321321
0,
322322
valid ? craftingPlan.getCraftingQuantity() : 0,
@@ -330,7 +330,7 @@ protected static void addElements(@Nullable Element parent, int indent, ITermina
330330
if (craftingPlan.getStatus() == TerminalCraftingJobStatus.PENDING_INPUTS) {
331331
// Add last missing ingredients
332332
for (List<IPrototypedIngredient<?, ?>> lastMissingIngredient : craftingPlan.getLastMissingIngredients()) {
333-
List outputs = Collections.singletonList(lastMissingIngredient
333+
List<List<IPrototypedIngredient>> outputs = Collections.singletonList(lastMissingIngredient
334334
.stream()
335335
.map(prototypedIngredient -> {
336336
IIngredientMatcher matcher = prototypedIngredient.getComponent().getMatcher();
@@ -343,9 +343,9 @@ protected static void addElements(@Nullable Element parent, int indent, ITermina
343343
0, 0, craftingPlan.getCraftingQuantity(), TerminalCraftingJobStatus.INVALID.getColor(), TerminalCraftingJobStatus.INVALID)));
344344
}
345345
} else if (craftingPlan.getStatus() != TerminalCraftingJobStatus.CRAFTING) {
346-
for (IPrototypedIngredient storageIngredient : craftingPlan.getStorageIngredients()) {
347-
elements.add(currentElement.addChild(new Element(elementId++, indent + 1, Collections.singletonList(Collections.singletonList(storageIngredient)),
348-
storageIngredient.getComponent().getMatcher().getQuantity(storageIngredient.getPrototype()),
346+
for (IPrototypedIngredient bufferedIngredient : craftingPlan.getBufferedIngredients()) {
347+
elements.add(currentElement.addChild(new Element(elementId++, indent + 1, Collections.singletonList(Collections.singletonList(bufferedIngredient)),
348+
bufferedIngredient.getComponent().getMatcher().getQuantity(bufferedIngredient.getPrototype()),
349349
0, 0, TerminalCraftingJobStatus.FINISHED.getColor(), TerminalCraftingJobStatus.FINISHED)));
350350
}
351351
}
@@ -377,11 +377,11 @@ public static class Element {
377377

378378
private boolean enabled;
379379

380-
public Element(int id, int indent, List<List<IPrototypedIngredient<?, ?>>> outputs, long storageQuantity, long craftQuantity,
380+
public Element(int id, int indent, List<List<IPrototypedIngredient>> outputs, long storageQuantity, long craftQuantity,
381381
long missingQuantity, int color, TerminalCraftingJobStatus status) {
382382
this.id = id;
383383
this.indent = indent;
384-
this.outputs = outputs;
384+
this.outputs = (List) outputs;
385385
this.storageQuantity = storageQuantity;
386386
this.craftQuantity = craftQuantity;
387387
this.missingQuantity = missingQuantity;

src/main/java/org/cyclops/integratedterminals/modcompat/integratedcrafting/TerminalCraftingPlanCraftingJobDependencyGraph.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ public TerminalCraftingPlanCraftingJobDependencyGraph(int id,
2222
List<IPrototypedIngredient<?, ?>> outputs,
2323
TerminalCraftingJobStatus status,
2424
long craftingQuantity,
25-
List<IPrototypedIngredient<?, ?>> storageIngredients,
25+
List<IPrototypedIngredient<?, ?>> bufferedIngredients,
2626
List<List<IPrototypedIngredient<?, ?>>> lastMissingIngredients,
2727
TerminalCraftingPlanStatic.Label label,
2828
long tickDuration,
2929
int channel,
3030
@Nullable String initiatorName,
3131
CraftingJobDependencyGraph craftingJobDependencyGraph) {
32-
super(id, dependencies, outputs, status, craftingQuantity, storageIngredients, lastMissingIngredients,
33-
label, tickDuration, channel, initiatorName);
32+
super(id, dependencies, outputs, status, craftingQuantity, bufferedIngredients,
33+
lastMissingIngredients, label, tickDuration, channel, initiatorName);
3434
this.craftingJobDependencyGraph = craftingJobDependencyGraph;
3535
}
3636

src/main/java/org/cyclops/integratedterminals/modcompat/integratedcrafting/TerminalStorageTabIngredientCraftingHandlerCraftingNetwork.java

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected static ITerminalCraftingPlan<Integer> newCraftingPlan(CraftingJob craf
116116
CraftingHelpers.multiplyPrototypedIngredients(recipeOutputs, craftingJob.getAmount()),
117117
TerminalCraftingJobStatus.UNSTARTED,
118118
craftingJob.getAmount(),
119-
IntegratedCraftingHelpers.getPrototypesFromIngredients(craftingJob.getIngredientsStorage()),
119+
IntegratedCraftingHelpers.getPrototypesFromIngredients(craftingJob.getIngredientsStorageBuffer()),
120120
Collections.emptyList(),
121121
TerminalCraftingPlanStatic.Label.VALID,
122122
-1,
@@ -130,12 +130,11 @@ protected static ITerminalCraftingPlan<Integer> newCraftingPlan(CraftingJob craf
130130
CraftingHelpers.multiplyPrototypedIngredients(recipeOutputs, craftingJob.getAmount()),
131131
TerminalCraftingJobStatus.UNSTARTED,
132132
craftingJob.getAmount(),
133-
IntegratedCraftingHelpers.getPrototypesFromIngredients(craftingJob.getIngredientsStorage()),
133+
IntegratedCraftingHelpers.getPrototypesFromIngredients(craftingJob.getIngredientsStorageBuffer()),
134134
Collections.emptyList(),
135135
TerminalCraftingPlanStatic.Label.VALID,
136136
-1,
137-
craftingJob.getChannel(),
138-
null);
137+
craftingJob.getChannel(), null);
139138
}
140139
}
141140

@@ -162,8 +161,7 @@ protected static ITerminalCraftingPlan<Integer> newCraftingPlanUnknown(UnknownCr
162161
Collections.emptyList(),
163162
TerminalCraftingPlanStatic.Label.INCOMPLETE,
164163
-1,
165-
-1,
166-
null);
164+
-1, null);
167165
}
168166

169167
protected static ITerminalCraftingPlan<Integer> newCraftingPlanFailed(FailedCraftingRecipeException exception, CraftingJobDependencyGraph dependencyGraph) {
@@ -190,8 +188,7 @@ protected static ITerminalCraftingPlan<Integer> newCraftingPlanFailed(FailedCraf
190188
Collections.emptyList(),
191189
TerminalCraftingPlanStatic.Label.INCOMPLETE,
192190
-1,
193-
-1,
194-
null);
191+
-1, null);
195192
}
196193

197194
protected static ITerminalCraftingPlan<Integer> newCraftingPlanErrorRecursive(List<IRecipeDefinition> childRecipes) {
@@ -209,8 +206,7 @@ protected static ITerminalCraftingPlan<Integer> newCraftingPlanErrorRecursive(Li
209206
Collections.emptyList(),
210207
TerminalCraftingPlanStatic.Label.RECURSION,
211208
-1,
212-
-1,
213-
null);
209+
-1, null);
214210
}
215211

216212
@Override
@@ -220,7 +216,7 @@ public void startCraftingJob(INetwork network, int channel, ITerminalCraftingPla
220216
&& craftingPlan.getStatus() == TerminalCraftingJobStatus.UNSTARTED) {
221217
CraftingJobDependencyGraph craftingJobDependencyGraph = ((TerminalCraftingPlanCraftingJobDependencyGraph) craftingPlan).getCraftingJobDependencyGraph();
222218
try {
223-
CraftingHelpers.scheduleCraftingJobs(CraftingHelpers.getCraftingNetworkChecked(network), craftingJobDependencyGraph, true, player.getUUID());
219+
CraftingHelpers.scheduleCraftingJobs(CraftingHelpers.getCraftingNetworkChecked(network), CraftingHelpers.getNetworkStorageGetter(network, channel, false), craftingJobDependencyGraph, true, player.getUUID());
224220
} catch (UnavailableCraftingInterfacesException e) {
225221
throw new CraftingJobStartException("gui.integratedterminals.terminal_storage.craftingplan.label.failed.insufficient_crafting_interfaces");
226222
}
@@ -240,8 +236,7 @@ protected static ITerminalCraftingPlan<Integer> newErroredCraftingJob() {
240236
Collections.emptyList(),
241237
TerminalCraftingPlanStatic.Label.ERROR,
242238
-1,
243-
-1,
244-
null);
239+
-1, null);
245240
}
246241

247242
protected static ITerminalCraftingPlan<Integer> newActiveCraftingJob(ICraftingNetwork craftingNetwork, int channel,
@@ -361,12 +356,11 @@ protected static ITerminalCraftingPlan<Integer> newActiveCraftingJob(ICraftingNe
361356
pendingOutputs,
362357
jobStatus,
363358
craftingJob.getAmount(),
364-
IntegratedCraftingHelpers.getPrototypesFromIngredients(craftingJob.getIngredientsStorage()),
359+
IntegratedCraftingHelpers.getPrototypesFromIngredients(craftingJob.getIngredientsStorageBuffer()),
365360
lastMissingIngredients,
366361
TerminalCraftingPlanStatic.Label.RUNNING,
367362
craftingNetwork.getRunningTicks(craftingJob),
368-
craftingJob.getChannel(),
369-
uuidToName(craftingJob.getInitiatorUuid()));
363+
craftingJob.getChannel(), uuidToName(craftingJob.getInitiatorUuid()));
370364
}
371365

372366
@Nullable
@@ -439,7 +433,7 @@ public ITerminalCraftingPlan<Integer> deserializeCraftingPlan(ValueInput valueIn
439433
planStatic.getOutputs(),
440434
planStatic.getStatus(),
441435
planStatic.getCraftingQuantity(),
442-
planStatic.getStorageIngredients(),
436+
planStatic.getBufferedIngredients(),
443437
planStatic.getLastMissingIngredients(),
444438
planStatic.getLabel(),
445439
planStatic.getTickDuration(),

0 commit comments

Comments
 (0)