1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
|
package gregtech.common.tileentities.machines.multi;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose;
import static gregtech.GTMod.GT_FML_LOGGER;
import static gregtech.api.enums.HatchElement.Energy;
import static gregtech.api.enums.HatchElement.InputBus;
import static gregtech.api.enums.HatchElement.InputHatch;
import static gregtech.api.enums.HatchElement.Maintenance;
import static gregtech.api.enums.HatchElement.OutputBus;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ASSEMBLY_LINE_GLOW;
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static gregtech.api.util.GTStructureUtility.ofHatchAdder;
import static gregtech.api.util.GTUtility.validMTEList;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
import org.jetbrains.annotations.NotNull;
import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
import com.gtnewhorizon.structurelib.structure.IStructureDefinition;
import com.gtnewhorizon.structurelib.structure.ISurvivalBuildEnvironment;
import com.gtnewhorizon.structurelib.structure.StructureDefinition;
import gregtech.api.GregTechAPI;
import gregtech.api.enums.GTValues;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
import gregtech.api.enums.VoidingMode;
import gregtech.api.interfaces.IHatchElement;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.implementations.MTEExtendedPowerMultiBlockBase;
import gregtech.api.metatileentity.implementations.MTEHatch;
import gregtech.api.metatileentity.implementations.MTEHatchDataAccess;
import gregtech.api.multitileentity.multiblock.casing.Glasses;
import gregtech.api.recipe.RecipeMap;
import gregtech.api.recipe.RecipeMaps;
import gregtech.api.recipe.check.CheckRecipeResult;
import gregtech.api.recipe.check.CheckRecipeResultRegistry;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.AssemblyLineUtils;
import gregtech.api.util.GTRecipe;
import gregtech.api.util.GTRecipe.RecipeAssemblyLine;
import gregtech.api.util.GTUtility;
import gregtech.api.util.IGTHatchAdder;
import gregtech.api.util.MultiblockTooltipBuilder;
import gregtech.api.util.OverclockCalculator;
import gregtech.api.util.VoidProtectionHelper;
public class MTEAssemblyLine extends MTEExtendedPowerMultiBlockBase<MTEAssemblyLine> implements ISurvivalConstructable {
public ArrayList<MTEHatchDataAccess> mDataAccessHatches = new ArrayList<>();
private static final String STRUCTURE_PIECE_FIRST = "first";
private static final String STRUCTURE_PIECE_LATER = "later";
private static final String STRUCTURE_PIECE_LAST = "last";
private static final IStructureDefinition<MTEAssemblyLine> STRUCTURE_DEFINITION = StructureDefinition
.<MTEAssemblyLine>builder()
.addShape(
STRUCTURE_PIECE_FIRST,
transpose(new String[][] { { " ", "e", " " }, { "~", "l", "G" }, { "g", "m", "g" }, { "b", "i", "b" }, }))
.addShape(
STRUCTURE_PIECE_LATER,
transpose(new String[][] { { " ", "e", " " }, { "d", "l", "d" }, { "g", "m", "g" }, { "b", "I", "b" }, }))
.addShape(
STRUCTURE_PIECE_LAST,
transpose(new String[][] { { " ", "e", " " }, { "d", "l", "d" }, { "g", "m", "g" }, { "o", "i", "b" }, }))
.addElement('G', ofBlock(GregTechAPI.sBlockCasings3, 10)) // grate machine casing
.addElement('l', ofBlock(GregTechAPI.sBlockCasings2, 9)) // assembler machine casing
.addElement('m', ofBlock(GregTechAPI.sBlockCasings2, 5)) // assembling line casing
.addElement('g', Glasses.chainAllGlasses())
.addElement(
'e',
ofChain(
Energy.newAny(16, 1, ForgeDirection.UP, ForgeDirection.NORTH, ForgeDirection.SOUTH),
ofBlock(GregTechAPI.sBlockCasings2, 0)))
.addElement(
'd',
buildHatchAdder(MTEAssemblyLine.class).atLeast(DataHatchElement.DataAccess)
.dot(2)
.casingIndex(42)
.allowOnly(ForgeDirection.NORTH)
.buildAndChain(GregTechAPI.sBlockCasings3, 10))
.addElement(
'b',
buildHatchAdder(MTEAssemblyLine.class).atLeast(InputHatch, InputHatch, InputHatch, InputHatch, Maintenance)
.casingIndex(16)
.dot(3)
.allowOnly(ForgeDirection.DOWN)
.buildAndChain(
ofBlock(GregTechAPI.sBlockCasings2, 0),
ofHatchAdder(MTEAssemblyLine::addOutputToMachineList, 16, 4)))
.addElement(
'I',
ofChain(
// all blocks nearby use solid steel casing, so let's use the texture of that
InputBus.newAny(16, 5, ForgeDirection.DOWN),
ofHatchAdder(MTEAssemblyLine::addOutputToMachineList, 16, 4)))
.addElement('i', InputBus.newAny(16, 5, ForgeDirection.DOWN))
.addElement('o', OutputBus.newAny(16, 4, ForgeDirection.DOWN))
.build();
public MTEAssemblyLine(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
}
public MTEAssemblyLine(String aName) {
super(aName);
}
@Override
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new MTEAssemblyLine(this.mName);
}
@Override
protected MultiblockTooltipBuilder createTooltip() {
final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder();
tt.addMachineType("Assembling Line")
.addInfo("Controller block for the Assembling Line")
.addInfo("Used to make complex machine parts (LuV+)")
.addInfo("Does not make Assembler items")
.addInfo("Recipe tier is at most Energy Hatch tier + 1.")
.addSeparator()
.beginVariableStructureBlock(5, 16, 4, 4, 3, 3, false) // ?
.addStructureInfo("From Bottom to Top, Left to Right")
.addStructureInfo(
"Layer 1 - Solid Steel Machine Casing, Input Bus (last can be Output Bus), Solid Steel Machine Casing")
.addStructureInfo(
"Layer 2 - Borosilicate Glass(any)/Warded Glass/Reinforced Glass, Assembling Line Casing, Reinforced Glass")
.addStructureInfo("Layer 3 - Grate Machine Casing, Assembler Machine Casing, Grate Machine Casing")
.addStructureInfo("Layer 4 - Empty, Solid Steel Machine Casing, Empty")
.addStructureInfo("Up to 16 repeating slices, each one allows for 1 more item in recipes")
.addController("Either Grate on layer 3 of the first slice")
.addEnergyHatch("Any layer 4 casing", 1)
.addMaintenanceHatch("Any layer 1 casing", 3)
.addInputBus("As specified on layer 1", 4, 5)
.addInputHatch("Any layer 1 casing", 3)
.addOutputBus("Replaces Input Bus on final slice or on any solid steel casing on layer 1", 4)
.addOtherStructurePart("Data Access Hatch", "Optional, next to controller", 2)
.toolTipFinisher("Gregtech");
return tt;
}
@Override
public ITexture[] getTexture(IGregTechTileEntity baseMetaTileEntity, ForgeDirection sideDirection,
ForgeDirection facingDirection, int colorIndex, boolean active, boolean redstoneLevel) {
if (sideDirection == facingDirection) {
if (active) return new ITexture[] { BlockIcons.casingTexturePages[0][16], TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE)
.extFacing()
.build(),
TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_ACTIVE_GLOW)
.extFacing()
.glow()
.build() };
return new ITexture[] { BlockIcons.casingTexturePages[0][16], TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ASSEMBLY_LINE)
.extFacing()
.build(),
TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ASSEMBLY_LINE_GLOW)
.extFacing()
.glow()
.build() };
}
return new ITexture[] { Textures.BlockIcons.casingTexturePages[0][16] };
}
@Override
public RecipeMap<?> getRecipeMap() {
return RecipeMaps.assemblylineVisualRecipes;
}
@Override
public boolean isCorrectMachinePart(ItemStack aStack) {
return true;
}
@Override
@NotNull
public CheckRecipeResult checkProcessing() {
if (GTValues.D1) {
GT_FML_LOGGER.info("Start ALine recipe check");
}
CheckRecipeResult result = CheckRecipeResultRegistry.NO_DATA_STICKS;
ArrayList<ItemStack> tDataStickList = getDataItems(2);
if (tDataStickList.isEmpty()) {
return result;
}
if (GTValues.D1) {
GT_FML_LOGGER.info("Stick accepted, " + tDataStickList.size() + " Data Sticks found");
}
int[] tStacks = new int[0];
FluidStack[] tFluids = new FluidStack[0];
long averageVoltage = getAverageInputVoltage();
int maxParallel = 1;
long maxAmp = getMaxInputAmps();
Map<GTUtility.ItemId, ItemStack> inputsFromME = getStoredInputsFromME();
Map<Fluid, FluidStack> fluidsFromME = getStoredFluidsFromME();
for (ItemStack tDataStick : tDataStickList) {
AssemblyLineUtils.LookupResult tLookupResult = AssemblyLineUtils
.findAssemblyLineRecipeFromDataStick(tDataStick, false);
if (tLookupResult.getType() == AssemblyLineUtils.LookupResultType.INVALID_STICK) {
result = CheckRecipeResultRegistry.NO_RECIPE;
continue;
}
GTRecipe.RecipeAssemblyLine tRecipe = tLookupResult.getRecipe();
// Check if the recipe on the data stick is the current recipe for it's given output, if not we update it
// and continue to next.
if (tLookupResult.getType() != AssemblyLineUtils.LookupResultType.VALID_STACK_AND_VALID_HASH) {
tRecipe = AssemblyLineUtils.processDataStick(tDataStick);
if (tRecipe == null) {
result = CheckRecipeResultRegistry.NO_RECIPE;
continue;
}
}
// Recipe tier is limited to hatch tier + 1.
if (tRecipe.mEUt > averageVoltage * 4) {
result = CheckRecipeResultRegistry.insufficientPower(tRecipe.mEUt);
continue;
}
// Insufficient power check.
if (tRecipe.mEUt > maxAmp * averageVoltage) {
result = CheckRecipeResultRegistry.insufficientPower(tRecipe.mEUt);
continue;
}
// So here we check against the recipe found on the data stick.
// If we run into missing buses/hatches or bad inputs, we go to the next data stick.
// This check only happens if we have a valid up-to-date data stick.
// first validate we have enough input busses and input hatches for this recipe
if (mInputBusses.size() < tRecipe.mInputs.length || mInputHatches.size() < tRecipe.mFluidInputs.length) {
if (GTValues.D1) {
GT_FML_LOGGER.info(
"Not enough sources: Need ({}, {}), has ({}, {})",
mInputBusses.size(),
tRecipe.mInputs.length,
mInputHatches.size(),
tRecipe.mFluidInputs.length);
}
result = CheckRecipeResultRegistry.NO_RECIPE;
continue;
}
int originalMaxParallel = 1;
maxParallel = originalMaxParallel;
OverclockCalculator calculator = new OverclockCalculator().setRecipeEUt(tRecipe.mEUt)
.setEUt(averageVoltage)
.setAmperage(maxAmp)
.setAmperageOC(mEnergyHatches.size() != 1)
.setDuration(tRecipe.mDuration)
.setParallel(originalMaxParallel);
double tickTimeAfterOC = calculator.calculateDurationUnderOneTick();
if (tickTimeAfterOC < 1) {
maxParallel = GTUtility.safeInt((long) (maxParallel / tickTimeAfterOC), 0);
}
int maxParallelBeforeBatchMode = maxParallel;
if (isBatchModeEnabled()) {
maxParallel = GTUtility.safeInt((long) maxParallel * getMaxBatchSize(), 0);
}
if (protectsExcessItem()) {
VoidProtectionHelper voidProtectionHelper = new VoidProtectionHelper();
voidProtectionHelper.setMachine(this)
.setItemOutputs(new ItemStack[] { tRecipe.mOutput })
.setMaxParallel(maxParallel)
.build();
maxParallel = Math.min(voidProtectionHelper.getMaxParallel(), maxParallel);
if (voidProtectionHelper.isItemFull()) {
result = CheckRecipeResultRegistry.ITEM_OUTPUT_FULL;
continue;
}
}
int currentParallel = maxParallel;
// Check Inputs allign
int[] itemConsumptions = GTRecipe.RecipeAssemblyLine.getItemConsumptionAmountArray(mInputBusses, tRecipe);
if (itemConsumptions == null || itemConsumptions.length == 0) {
result = CheckRecipeResultRegistry.NO_RECIPE;
continue;
}
currentParallel = (int) GTRecipe.RecipeAssemblyLine
.maxParallelCalculatedByInputItems(mInputBusses, currentParallel, itemConsumptions, inputsFromME);
if (currentParallel <= 0) {
result = CheckRecipeResultRegistry.NO_RECIPE;
continue;
}
tStacks = itemConsumptions;
if (GTValues.D1) {
GT_FML_LOGGER.info("All Items accepted");
}
// Check Fluid Inputs allign
if (tRecipe.mFluidInputs.length > 0) {
currentParallel = (int) RecipeAssemblyLine.maxParallelCalculatedByInputFluids(
mInputHatches,
currentParallel,
tRecipe.mFluidInputs,
fluidsFromME);
if (currentParallel <= 0) {
result = CheckRecipeResultRegistry.NO_RECIPE;
continue;
}
tFluids = tRecipe.mFluidInputs;
}
if (GTValues.D1) {
GT_FML_LOGGER.info("All fluids accepted");
}
if (GTValues.D1) {
GT_FML_LOGGER.info("Check overclock");
}
int currentParallelBeforeBatchMode = Math.min(currentParallel, maxParallelBeforeBatchMode);
calculator.setCurrentParallel(currentParallelBeforeBatchMode)
.calculate();
double batchMultiplierMax = 1;
// In case batch mode enabled
if (currentParallel > maxParallelBeforeBatchMode && calculator.getDuration() < getMaxBatchSize()) {
batchMultiplierMax = (double) getMaxBatchSize() / calculator.getDuration();
batchMultiplierMax = Math
.min(batchMultiplierMax, (double) currentParallel / maxParallelBeforeBatchMode);
}
int finalParallel = (int) (batchMultiplierMax * maxParallelBeforeBatchMode);
lEUt = calculator.getConsumption();
mMaxProgresstime = (int) (calculator.getDuration() * batchMultiplierMax);
maxParallel = finalParallel;
if (GTValues.D1) {
GT_FML_LOGGER.info("Find available recipe");
}
result = CheckRecipeResultRegistry.SUCCESSFUL;
mOutputItems = new ItemStack[] { tRecipe.mOutput.copy() };
mOutputItems[0].stackSize *= maxParallelBeforeBatchMode * batchMultiplierMax;
break;
}
if (!result.wasSuccessful()) {
return result;
}
// Must be something wrong here...
if (tStacks.length == 0 || maxParallel <= 0) {
return CheckRecipeResultRegistry.INTERNAL_ERROR;
}
if (GTValues.D1) {
GT_FML_LOGGER.info("All checked start consuming inputs");
}
GTRecipe.RecipeAssemblyLine.consumeInputItems(mInputBusses, maxParallel, tStacks, inputsFromME);
GTRecipe.RecipeAssemblyLine.consumeInputFluids(mInputHatches, maxParallel, tFluids, fluidsFromME);
if (this.lEUt > 0) {
this.lEUt = -this.lEUt;
}
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
updateSlots();
if (GTValues.D1) {
GT_FML_LOGGER.info("Recipe successful");
}
return result;
}
@Override
public boolean onRunningTick(ItemStack aStack) {
for (MTEHatchDataAccess hatch_dataAccess : mDataAccessHatches) {
hatch_dataAccess.setActive(true);
}
return super.onRunningTick(aStack);
}
@Override
public IStructureDefinition<MTEAssemblyLine> getStructureDefinition() {
return STRUCTURE_DEFINITION;
}
@Override
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
mDataAccessHatches.clear();
if (!checkPiece(STRUCTURE_PIECE_FIRST, 0, 1, 0)) return false;
return checkMachine(true) || checkMachine(false);
}
private boolean checkMachine(boolean leftToRight) {
for (int i = 1; i < 16; i++) {
if (!checkPiece(STRUCTURE_PIECE_LATER, leftToRight ? -i : i, 1, 0)) return false;
if (!mOutputBusses.isEmpty())
return !mEnergyHatches.isEmpty() && mMaintenanceHatches.size() == 1 && mDataAccessHatches.size() <= 1;
}
return false;
}
/**
* @param state using bitmask, 1 for IntegratedCircuit, 2 for DataStick, 4 for DataOrb
*/
private static boolean isCorrectDataItem(ItemStack aStack, int state) {
if ((state & 1) != 0 && ItemList.Circuit_Integrated.isStackEqual(aStack, true, true)) return true;
if ((state & 2) != 0 && ItemList.Tool_DataStick.isStackEqual(aStack, false, true)) return true;
return (state & 4) != 0 && ItemList.Tool_DataOrb.isStackEqual(aStack, false, true);
}
/**
* @param state using bitmask, 1 for IntegratedCircuit, 2 for DataStick, 4 for DataOrb
*/
public ArrayList<ItemStack> getDataItems(int state) {
ArrayList<ItemStack> rList = new ArrayList<>();
if (GTUtility.isStackValid(mInventory[1]) && isCorrectDataItem(mInventory[1], state)) {
rList.add(mInventory[1]);
}
for (MTEHatchDataAccess tHatch : validMTEList(mDataAccessHatches)) {
rList.addAll(tHatch.getInventoryItems(stack -> isCorrectDataItem(stack, state)));
}
return rList;
}
public boolean addDataAccessToMachineList(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
if (aTileEntity == null) return false;
IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
if (aMetaTileEntity == null) return false;
if (aMetaTileEntity instanceof MTEHatchDataAccess) {
((MTEHatch) aMetaTileEntity).updateTexture(aBaseCasingIndex);
return mDataAccessHatches.add((MTEHatchDataAccess) aMetaTileEntity);
}
return false;
}
@Override
public int getMaxEfficiency(ItemStack aStack) {
return 10000;
}
@Override
public int getDamageToComponent(ItemStack aStack) {
return 0;
}
@Override
public boolean explodesOnComponentBreak(ItemStack aStack) {
return false;
}
@Override
public void construct(ItemStack stackSize, boolean hintsOnly) {
buildPiece(STRUCTURE_PIECE_FIRST, stackSize, hintsOnly, 0, 1, 0);
int tLength = Math.min(stackSize.stackSize + 1, 16);
for (int i = 1; i < tLength; i++) {
buildPiece(STRUCTURE_PIECE_LATER, stackSize, hintsOnly, -i, 1, 0);
}
}
@Override
public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) {
if (mMachine) return -1;
int build = survivialBuildPiece(STRUCTURE_PIECE_FIRST, stackSize, 0, 1, 0, elementBudget, env, false, true);
if (build >= 0) return build;
int tLength = Math.min(stackSize.stackSize + 1, 16);
for (int i = 1; i < tLength - 1; i++) {
build = survivialBuildPiece(STRUCTURE_PIECE_LATER, stackSize, -i, 1, 0, elementBudget, env, false, true);
if (build >= 0) return build;
}
return survivialBuildPiece(STRUCTURE_PIECE_LAST, stackSize, 1 - tLength, 1, 0, elementBudget, env, false, true);
}
@Override
public boolean supportsVoidProtection() {
return true;
}
@Override
public Set<VoidingMode> getAllowedVoidingModes() {
return VoidingMode.ITEM_ONLY_MODES;
}
@Override
public boolean supportsBatchMode() {
return true;
}
private enum DataHatchElement implements IHatchElement<MTEAssemblyLine> {
DataAccess;
@Override
public List<? extends Class<? extends IMetaTileEntity>> mteClasses() {
return Collections.singletonList(MTEHatchDataAccess.class);
}
@Override
public IGTHatchAdder<MTEAssemblyLine> adder() {
return MTEAssemblyLine::addDataAccessToMachineList;
}
@Override
public long count(MTEAssemblyLine t) {
return t.mDataAccessHatches.size();
}
}
}
|