Skip to content

Commit d6707f8

Browse files
committed
Merge remote-tracking branch 'origin/master-1.21-lts' into master-1.21
2 parents 06a0c00 + 55e0bc1 commit d6707f8

12 files changed

Lines changed: 160 additions & 45 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
- name: 'Build'
4646
run: ./gradlew build --no-daemon
4747
env:
48-
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
49-
MAVEN_KEY: ${{ secrets.MAVEN_KEY }}
48+
MAVEN_USERNAME: ${{ github.actor }}
49+
MAVEN_KEY: ${{ secrets.GITHUB_TOKEN }}
5050
GITHUB_USER: ${{ github.actor }}
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
- name: 'Warmup for game test server'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ repo/*
1919
out/*
2020
keystore.jks
2121
.idea
22+
logs/
2223

2324
# Ignore mac-specific file(s)
2425
.DS_Store

CHANGELOG-1.19.2.md

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

4+
<a name="1.19.2-1.6.16"></a>
5+
## [1.19.2-1.6.16](/compare/1.19.2-1.6.15...1.19.2-1.6.16) - 2026-02-17 11:41:13
6+
7+
8+
### Added
9+
* Show ingredient alternatives in flat crafting plan, Closes #189
10+
411
<a name="1.19.2-1.6.15"></a>
5-
## [1.19.2-1.6.15](/compare/1.19.2-1.6.14...1.19.2-1.6.15) - 2026-01-17 14:24:55
12+
## [1.19.2-1.6.15](/compare/1.19.2-1.6.14...1.19.2-1.6.15) - 2026-01-17 14:24:55 +0100
613

714

815
### Changed

CHANGELOG-1.20.1.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
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.18"></a>
5+
## [1.20.1-1.6.18](/compare/1.20.1-1.6.17...1.20.1-1.6.18) - 2026-02-17 11:43:36
6+
7+
8+
### Changed
9+
* Show ingredient alternatives in flat crafting plan, Closes #189
10+
411
<a name="1.20.1-1.6.17"></a>
5-
## [1.20.1-1.6.17](/compare/1.20.1-1.6.16...1.20.1-1.6.17) - 2026-01-17 14:26:49
12+
## [1.20.1-1.6.17](/compare/1.20.1-1.6.16...1.20.1-1.6.17) - 2026-01-17 14:26:49 +0100
613

714

815
### Changed

CHANGELOG-1.21.1.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
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.25"></a>
5+
## [1.21.1-1.6.25](https://github.com/CyclopsMC/IntegratedTerminals/compare/1.21.1-1.6.24...1.21.1-1.6.25) - 2026-02-17 11:45:52
6+
7+
8+
### Changed
9+
* Show ingredient alternatives in flat crafting plan, Closes #189
10+
411
<a name="1.21.1-1.6.24"></a>
5-
## [1.21.1-1.6.24](https://github.com/CyclopsMC/IntegratedTerminals/compare/1.21.1-1.6.23...1.21.1-1.6.24) - 2026-01-17 14:27:49
12+
## [1.21.1-1.6.24](https://github.com/CyclopsMC/IntegratedTerminals/compare/1.21.1-1.6.23...1.21.1-1.6.24) - 2026-01-17 14:27:49 +0100
613

714

815
### Changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.19.4 or higher.
3+
4+
Additions:
5+
* Show ingredient alternatives in flat crafting plan, Closes #189
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
* Show ingredient alternatives in flat crafting plan, Closes #189
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.25.1 or higher.
3+
4+
Changes:
5+
* Show ingredient alternatives in flat crafting plan, Closes #189

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,16 @@ public static interface IEntry {
6868

6969
/**
7070
* @return The entry instance.
71+
* @deprecated Use {@link #getInstances()} instead. TODO: rm in next major
7172
*/
73+
@Deprecated
7274
public IPrototypedIngredient<?, ?> getInstance();
7375

76+
/**
77+
* @return The alternative entry instances for this entry. Never empty.
78+
*/
79+
public List<IPrototypedIngredient<?, ?>> getInstances();
80+
7481
/**
7582
* @return The number of instances to craft.
7683
*/

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

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,27 +173,44 @@ public static <I> TerminalCraftingPlanFlatStatic<I> deserialize(ValueInput value
173173

174174
public static class Entry implements ITerminalCraftingPlanFlat.IEntry {
175175

176-
private final IPrototypedIngredient<?, ?> instance;
176+
private final List<IPrototypedIngredient<?, ?>> instances;
177177
private long quantityToCraft;
178178
private long quantityCrafting;
179179
private long quantityInStorage;
180180
private long quantityMissing;
181181

182-
public Entry(IPrototypedIngredient<?, ?> instance, long quantityToCraft, long quantityCrafting, long quantityInStorage, long quantityMissing) {
183-
this.instance = instance;
182+
public Entry(List<IPrototypedIngredient<?, ?>> instances, long quantityToCraft, long quantityCrafting, long quantityInStorage, long quantityMissing) {
183+
this.instances = instances;
184184
this.quantityToCraft = quantityToCraft;
185185
this.quantityCrafting = quantityCrafting;
186186
this.quantityInStorage = quantityInStorage;
187187
this.quantityMissing = quantityMissing;
188188
}
189189

190+
public Entry(List<IPrototypedIngredient<?, ?>> instances) {
191+
this(instances, 0, 0, 0, 0);
192+
}
193+
194+
/**
195+
* @deprecated Use {@link #Entry(List)} instead. TODO: rm in next major
196+
*/
197+
@Deprecated
190198
public Entry(IPrototypedIngredient<?, ?> instance) {
191-
this(instance, 0, 0, 0, 0);
199+
this(List.of(instance), 0, 0, 0, 0);
192200
}
193201

202+
/**
203+
* @deprecated Use {@link #getInstances()} instead. TODO: rm in next major
204+
*/
194205
@Override
206+
@Deprecated
195207
public IPrototypedIngredient<?, ?> getInstance() {
196-
return instance;
208+
return instances.get(0);
209+
}
210+
211+
@Override
212+
public List<IPrototypedIngredient<?, ?>> getInstances() {
213+
return instances;
197214
}
198215

199216
@Override
@@ -233,21 +250,27 @@ public void setQuantityMissing(long quantityMissing) {
233250
}
234251

235252
public static void serialize(ValueOutput valueOutput, Entry entry) {
236-
IPrototypedIngredient.serialize(valueOutput.child("instance"), entry.getInstance());
253+
ValueOutput.ValueOutputList instances = valueOutput.childrenList("instances");
254+
for (IPrototypedIngredient<?, ?> instance : entry.getInstances()) {
255+
IPrototypedIngredient.serialize(instances.addChild(), instance);
256+
}
237257
valueOutput.putLong("quantityToCraft", entry.getQuantityToCraft());
238258
valueOutput.putLong("quantityCrafting", entry.getQuantityCrafting());
239259
valueOutput.putLong("quantityInStorage", entry.getQuantityInStorage());
240260
valueOutput.putLong("quantityMissing", entry.getQuantityMissing());
241261
}
242262

243263
public static TerminalCraftingPlanFlatStatic.Entry deserialize(ValueInput valueInput) {
244-
IPrototypedIngredient<?, ?> instance = IPrototypedIngredient.deserialize(valueInput.child("instance").orElseThrow());
264+
List<IPrototypedIngredient<?, ?>> instances = Lists.newArrayList();
265+
for (ValueInput instance : valueInput.childrenList("instances").orElseThrow()) {
266+
instances.add(IPrototypedIngredient.deserialize(instance));
267+
}
245268
long quantityToCraft = valueInput.getLong("quantityToCraft").orElseThrow();
246269
long quantityCrafting = valueInput.getLong("quantityCrafting").orElseThrow();
247270
long quantityInStorage = valueInput.getLong("quantityInStorage").orElseThrow();
248271
long quantityMissing = valueInput.getLong("quantityMissing").orElseThrow();
249272

250-
return new TerminalCraftingPlanFlatStatic.Entry(instance, quantityToCraft, quantityCrafting, quantityInStorage, quantityMissing);
273+
return new TerminalCraftingPlanFlatStatic.Entry(instances, quantityToCraft, quantityCrafting, quantityInStorage, quantityMissing);
251274
}
252275

253276
}

0 commit comments

Comments
 (0)