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
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
|
package tileentities;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import org.lwjgl.input.Keyboard;
import blocks.Block_TFFTCasing;
import blocks.Block_TFFTMultiHatch;
import blocks.Block_TFFTStorageFieldBlockT1;
import blocks.Block_TFFTStorageFieldBlockT2;
import blocks.Block_TFFTStorageFieldBlockT3;
import blocks.Block_TFFTStorageFieldBlockT4;
import gregtech.api.enums.Textures.BlockIcons;
import gregtech.api.gui.GT_GUIContainer_MultiMachine;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Output;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
import gregtech.api.objects.GT_RenderedTexture;
import kekztech.MultiBlockTooltipBuilder;
import kekztech.MultiFluidHandler;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
import util.Vector3i;
import util.Vector3ic;
public class GTMTE_FluidMultiStorage extends GT_MetaTileEntity_MultiBlockBase {
private final String glassNameAE2 = "tile.appliedenergistics2.BlockQuartzGlass";
private final String glassNameStained = "tile.stainedGlass";
private final Block CASING = Block_TFFTCasing.getInstance();
private final Block STORAGE_FIELD1 = Block_TFFTStorageFieldBlockT1.getInstance();
private final Block STORAGE_FIELD2 = Block_TFFTStorageFieldBlockT2.getInstance();
private final Block STORAGE_FIELD3 = Block_TFFTStorageFieldBlockT3.getInstance();
private final Block STORAGE_FIELD4 = Block_TFFTStorageFieldBlockT4.getInstance();
private final Block MULTI_HATCH = Block_TFFTMultiHatch.getInstance();
private final int CASING_TEXTURE_ID = 176;
private MultiFluidHandler mfh;
private HashSet<TE_TFFTMultiHatch> multiHatches = new HashSet<>();
private int runningCost = 0;
private boolean doVoidExcess = false;
public GTMTE_FluidMultiStorage(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
}
public GTMTE_FluidMultiStorage(String aName) {
super(aName);
}
@Override
public IMetaTileEntity newMetaEntity(IGregTechTileEntity var1) {
return new GTMTE_FluidMultiStorage(super.mName);
}
@Override
public String[] getDescription() {
final MultiBlockTooltipBuilder b = new MultiBlockTooltipBuilder();
b.addInfo("High-Tech fluid tank that can hold up to 25 different fluids!")
.addInfo("Has 1/25th of the total capacity as capacity for each fluid.")
.addInfo("Rightclicking the controller with a screwdriver will turn on excess voiding.")
.addInfo("Fluid storage amount and running cost depends on the storage field blocks used.")
.addSeparator()
.addInfo("Note on hatch locking:")
.addInfo("Use an Integrated Circuit in the GUI slot to limit which fluid is output.")
.addInfo("The index of a stored fluid can be obtained through the Tricorder.")
.addSeparator()
.beginStructureBlock(5, 9, 5)
.addController("Top Center")
.addEnergyHatch("Any top or bottom casing")
.addOtherStructurePart("Inner 3x7x3 tube", "Storage Field Blocks")
.addOtherStructurePart("Outer 5x7x5 glass shell", "AE2 Quartz Glass of Vanilla Stained Glass")
.addIOHatches("Instead of any casing or glass, have to touch storage field")
.signAndFinalize("Kekzdealer");
if(!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
return b.getInformation();
} else {
return b.getStructureInformation();
}
}
@Override
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex,
boolean aActive, boolean aRedstone) {
return aSide == aFacing
? new ITexture[]{BlockIcons.casingTexturePages[1][48],
new GT_RenderedTexture(aActive
? BlockIcons.OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR_ACTIVE
: BlockIcons.OVERLAY_FRONT_LARGE_CHEMICAL_REACTOR)}
: new ITexture[]{BlockIcons.casingTexturePages[1][48]};
}
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, this.getLocalName(),
"MultiblockDisplay.png");
}
@Override
public boolean isCorrectMachinePart(ItemStack var1) {
return true;
}
@Override
public boolean checkRecipe(ItemStack guiSlotItem) {
this.mEfficiency = 10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000;
this.mEfficiencyIncrease = 10000;
this.mEUt = runningCost;
super.mMaxProgresstime = 10;
// If there are no basic I/O hatches, let multi hatches handle it and skip a lot of code!
if(multiHatches.size() > 0 && super.mInputHatches.size() == 0 && super.mOutputHatches.size() == 0) {
return true;
}
// Suck in fluids
final ArrayList<FluidStack> inputHatchFluids = super.getStoredFluids();
if(inputHatchFluids.size() > 0) {
for(FluidStack fluidStack : inputHatchFluids) {
final int pushed = mfh.pushFluid(fluidStack, true);
final FluidStack toDeplete = fluidStack.copy();
toDeplete.amount = pushed;
super.depleteInput(toDeplete);
}
// Void excess if that is turned on
if(doVoidExcess) {
for(GT_MetaTileEntity_Hatch_Input inputHatch : super.mInputHatches) {
inputHatch.setDrainableStack(null);
}
}
}
// Push out fluids
if(guiSlotItem != null && guiSlotItem.getUnlocalizedName().equals("gt.integrated_circuit")) {
final int config = guiSlotItem.getItemDamage();
final FluidStack storedFluid = mfh.getFluid(config);
// Sum available output capacity
int possibleOutput = 0;
for(GT_MetaTileEntity_Hatch_Output outputHatch : super.mOutputHatches) {
if(outputHatch.isFluidLocked() && outputHatch.getLockedFluidName().equals(storedFluid.getUnlocalizedName())) {
possibleOutput += outputHatch.getCapacity() - outputHatch.getFluidAmount();
} else if (outputHatch.getFluid() != null && outputHatch.getFluid().getUnlocalizedName().equals(storedFluid.getUnlocalizedName())) {
possibleOutput += outputHatch.getCapacity() - outputHatch.getFluidAmount();
} else if (outputHatch.getFluid() == null) {
possibleOutput += outputHatch.getCapacity() - outputHatch.getFluidAmount();
}
}
// Output as much as possible
final FluidStack tempStack = storedFluid.copy();
tempStack.amount = possibleOutput;
tempStack.amount = mfh.pullFluid(tempStack, config, true);
super.addOutput(tempStack);
} else {
final Iterator<FluidStack> storageIterator = mfh.getFluids().iterator();
while(storageIterator.hasNext()) {
FluidStack storedFluid = storageIterator.next();
// Sum available output capacity
int possibleOutput = 0;
for(GT_MetaTileEntity_Hatch_Output outputHatch : super.mOutputHatches) {
if(outputHatch.isFluidLocked() && outputHatch.getLockedFluidName().equals(storedFluid.getUnlocalizedName())) {
possibleOutput += outputHatch.getCapacity() - outputHatch.getFluidAmount();
} else if (outputHatch.getFluid() != null && outputHatch.getFluid().getUnlocalizedName().equals(storedFluid.getUnlocalizedName())) {
possibleOutput += outputHatch.getCapacity() - outputHatch.getFluidAmount();
} else if (outputHatch.getFluid() == null) {
possibleOutput += outputHatch.getCapacity() - outputHatch.getFluidAmount();
}
}
// output as much as possible
final FluidStack tempStack = storedFluid.copy();
tempStack.amount = possibleOutput;
// TODO possible concurrent modification exception as pullFluid calls remove() without an iterator
tempStack.amount = mfh.pullFluid(tempStack, true);
super.addOutput(tempStack);
}
}
return true;
}
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
super.onPostTick(aBaseMetaTileEntity, aTick);
if(mfh != null) {
mfh.setLock(!super.getBaseMetaTileEntity().isActive());
}
}
public Vector3ic rotateOffsetVector(Vector3ic forgeDirection, int x, int y, int z) {
final Vector3i offset = new Vector3i();
// either direction on z-axis
if(forgeDirection.x() == 0 && forgeDirection.z() == -1) {
offset.x = x;
offset.y = y;
offset.z = z;
}
if(forgeDirection.x() == 0 && forgeDirection.z() == 1) {
offset.x = -x;
offset.y = y;
offset.z = -z;
}
// either direction on x-axis
if(forgeDirection.x() == -1 && forgeDirection.z() == 0) {
offset.x = z;
offset.y = y;
offset.z = -x;
}
if(forgeDirection.x() == 1 && forgeDirection.z() == 0) {
offset.x = -z;
offset.y = y;
offset.z = x;
}
// either direction on y-axis
if(forgeDirection.y() == -1) {
offset.x = x;
offset.y = z;
offset.z = y;
}
return offset;
}
/**
* Checks structural integrity and registers machine parts.
* Appears to often not run but can be jump started by forcing a block update on the controller.
* (Place a piece of dirt on the front face and remove it again. Dirty fix lol.)
*
* @param thisController
* Object reference to this controller block's Tile Entity.
* @param guiSlotItem
* References the item stack that can be placed in that GUI slot
* in the top right.
*/
@Override
public boolean checkMachine(IGregTechTileEntity thisController, ItemStack guiSlotItem) {
// Figure out the vector for the direction the back face of the controller is facing
final Vector3ic forgeDirection = new Vector3i(
ForgeDirection.getOrientation(thisController.getBackFacing()).offsetX,
ForgeDirection.getOrientation(thisController.getBackFacing()).offsetY,
ForgeDirection.getOrientation(thisController.getBackFacing()).offsetZ
);
int minCasingAmount = 20;
boolean formationChecklist = true; // if this is still true at the end, machine is good to go :)
float runningCostAcc = 0;
double fluidCapacityAcc = 0;
multiHatches.clear();
// Front slice
for(int X = -2; X <= 2; X++) {
for(int Y = -2; Y <= 2; Y++) {
if(X == 0 && Y == 0) {
continue; // is controller
}
// Get next TE
final Vector3ic offset = rotateOffsetVector(forgeDirection, X, Y, 0);
IGregTechTileEntity currentTE =
thisController.getIGregTechTileEntityOffset(offset.x(), offset.y(), offset.z());
// Fluid hatches should touch the storage field.
// Maintenance/Energy hatch can go anywhere
if(X > -2 && X < 2 && Y > -2 && Y < 2) {
if (!super.addMaintenanceToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addInputToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addOutputToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addEnergyInputToMachineList(currentTE, CASING_TEXTURE_ID)) {
// If it's not a hatch, is it the right casing for this machine? Check block and block meta.
// Also check for multi hatch
if (thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == CASING) {
// Seems to be valid casing. Decrement counter.
minCasingAmount--;
} else if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == MULTI_HATCH) {
final TE_TFFTMultiHatch mh =
(TE_TFFTMultiHatch) thisController.getWorld().getTileEntity(
thisController.getXCoord() + offset.x(),
thisController.getYCoord() + offset.y(),
thisController.getZCoord() + offset.z());
multiHatches.add(mh);
}
else {
formationChecklist = false;
}
}
} else {
if (!super.addMaintenanceToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addEnergyInputToMachineList(currentTE, CASING_TEXTURE_ID)) {
// If it's not a hatch, is it the right casing for this machine? Check block and block meta.
if (thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == CASING) {
// Seems to be valid casing. Decrement counter.
minCasingAmount--;
} else {
formationChecklist = false;
}
}
}
}
}
// Middle three slices
for(int X = -2; X <= 2; X++) {
for(int Y = -2; Y <= 2; Y++) {
for(int Z = -1; Z >= -7; Z--) {
final Vector3ic offset = rotateOffsetVector(forgeDirection, X, Y, Z);
if(X > -2 && X < 2 && Y > -2 && Y < 2) {
if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName()
.equals(STORAGE_FIELD1.getUnlocalizedName())) {
runningCostAcc += 0.5f;
fluidCapacityAcc += 500000.0f;
} else if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName()
.equals(STORAGE_FIELD2.getUnlocalizedName())) {
runningCostAcc += 1.0f;
fluidCapacityAcc += 4000000.0f;
} else if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName()
.equals(STORAGE_FIELD3.getUnlocalizedName())) {
runningCostAcc += 2.0f;
fluidCapacityAcc += 16000000.0f;
} else if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName()
.equals(STORAGE_FIELD4.getUnlocalizedName())) {
runningCostAcc += 4.0f;
fluidCapacityAcc += 64000000.0f;
} else {
formationChecklist = false;
}
continue;
}
// Get next TE
IGregTechTileEntity currentTE =
thisController.getIGregTechTileEntityOffset(offset.x(), offset.y(), offset.z());// x, y ,z
// Corner allows only glass or casings
if(X == -2 && Y == -2 || X == 2 && Y == 2 || X == -2 && Y == 2 || X == 2 && Y == -2) {
if(!(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameAE2)
|| thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameStained)
|| thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == CASING)) {
formationChecklist = false; // do nothing yet
}
} else {
// Tries to add TE as either of those kinds of hatches.
// The number is the texture index number for the texture that needs to be painted over the hatch texture (TAE for GT++)
if ( !super.addInputToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addOutputToMachineList(currentTE, CASING_TEXTURE_ID)) {
// If it's not a hatch, is it the right casing for this machine? Check block and block meta.
// Also check for multi hatch
if (thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == CASING) {
// Seems to be valid casing. Decrement counter.
minCasingAmount--;
} else if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == MULTI_HATCH) {
final TE_TFFTMultiHatch mh =
(TE_TFFTMultiHatch) thisController.getWorld().getTileEntity(
thisController.getXCoord() + offset.x(),
thisController.getYCoord() + offset.y(),
thisController.getZCoord() + offset.z());
multiHatches.add(mh);
} else if (thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameAE2)
|| thisController.getBlockOffset(offset.x(), offset.y(), offset.z()).getUnlocalizedName().equals(glassNameStained)) {
// do nothing lol
} else {
formationChecklist = false;
}
}
}
}
}
}
// Back slice
for(int X = -2; X <= 2; X++) {
for(int Y = -2; Y <= 2; Y++) {
// Get next TE
final Vector3ic offset = rotateOffsetVector(forgeDirection, X, Y, -8);
IGregTechTileEntity currentTE =
thisController.getIGregTechTileEntityOffset(offset.x(), offset.y(), offset.z());
// Fluid hatches should touch the storage field.
// Maintenance/Energy hatch can go anywhere
if(X > -2 && X < 2 && Y > -2 && Y < 2) {
if (!super.addMaintenanceToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addInputToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addOutputToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addEnergyInputToMachineList(currentTE, CASING_TEXTURE_ID)) {
// If it's not a hatch, is it the right casing for this machine? Check block and block meta.
if (thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == CASING) {
// Seems to be valid casing. Decrement counter.
minCasingAmount--;
} else if(thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == MULTI_HATCH) {
final TE_TFFTMultiHatch mh =
(TE_TFFTMultiHatch) thisController.getWorld().getTileEntity(
thisController.getXCoord() + offset.x(),
thisController.getYCoord() + offset.y(),
thisController.getZCoord() + offset.z());
multiHatches.add(mh);
} else {
formationChecklist = false;
}
}
} else {
if (!super.addMaintenanceToMachineList(currentTE, CASING_TEXTURE_ID)
&& !super.addEnergyInputToMachineList(currentTE, CASING_TEXTURE_ID)) {
// If it's not a hatch, is it the right casing for this machine? Check block and block meta.
if (thisController.getBlockOffset(offset.x(), offset.y(), offset.z()) == CASING) {
// Seems to be valid casing. Decrement counter.
minCasingAmount--;
} else {
formationChecklist = false;
}
}
}
}
}
if(this.mEnergyHatches.size() < 1) {
System.out.println("At least one energy hatch is required!");
formationChecklist = false;
}
if(this.mMaintenanceHatches.size() < 1) {
System.out.println("You need a maintenance hatch to do maintenance.");
formationChecklist = false;
}
if(minCasingAmount > 0) {
formationChecklist = false;
}
if(formationChecklist) {
runningCost = (int) Math.round(-runningCostAcc);
// Update MultiFluidHandler in case storage cells have been changed
final int capacityPerFluid = (int) Math.round(fluidCapacityAcc / 25.0f);
if(mfh == null) {
mfh = new MultiFluidHandler(capacityPerFluid);
} else {
if(mfh.getCapacity() != capacityPerFluid) {
mfh = new MultiFluidHandler(capacityPerFluid, mfh.getFluids());
}
}
for(TE_TFFTMultiHatch mh : multiHatches) {
mh.setMultiFluidHandler(mfh);
}
}
return formationChecklist;
}
@Override
public void onScrewdriverRightClick(byte aSide, EntityPlayer aPlayer, float aX, float aY, float aZ) {
if(doVoidExcess) {
doVoidExcess = false;
aPlayer.addChatComponentMessage(new ChatComponentText("Auto-voiding turned off"));
} else {
doVoidExcess = true;
aPlayer.addChatComponentMessage(new ChatComponentText("Auto-voiding turned on"));
}
}
@Override
public String[] getInfoData() {
final ArrayList<String> ll = mfh.getInfoData();
ll.add(EnumChatFormatting.YELLOW + "Operational Data:" + EnumChatFormatting.RESET);
ll.add("Auto-voiding: " + doVoidExcess);
ll.add("Per-Fluid Capacity: " + mfh.getCapacity() + "L");
ll.add("Running Cost: " + (-super.mEUt) + "EU/t");
ll.add("Maintenance Status: " + ((super.getRepairStatus() == super.getIdealStatus())
? EnumChatFormatting.GREEN + "Working perfectly" + EnumChatFormatting.RESET
: EnumChatFormatting.RED + "Has Problems" + EnumChatFormatting.RESET));
ll.add("---------------------------------------------");
final String[] a = new String[ll.size()];
return ll.toArray(a);
}
@Override
public void saveNBTData(NBTTagCompound nbt) {
nbt = (nbt == null) ? new NBTTagCompound() : nbt;
nbt.setInteger("runningCost", runningCost);
nbt.setBoolean("doVoidExcess", doVoidExcess);
nbt.setInteger("capacityPerFluid", mfh.getCapacity());
nbt.setTag("fluids", mfh.saveNBTData(new NBTTagCompound()));
super.saveNBTData(nbt);
}
@Override
public void loadNBTData(NBTTagCompound nbt) {
nbt = (nbt == null) ? new NBTTagCompound() : nbt;
runningCost = nbt.getInteger("runningCost");
doVoidExcess = nbt.getBoolean("doVoidExcess");
mfh = new MultiFluidHandler();
mfh.loadNBTData(nbt);
for(TE_TFFTMultiHatch mh : multiHatches) {
mh.setMultiFluidHandler(mfh);
}
super.loadNBTData(nbt);
}
@Override
public boolean isGivingInformation() {
return true;
}
@Override
public int getMaxEfficiency(ItemStack var1) {
return 10000;
}
@Override
public int getPollutionPerTick(ItemStack var1) {
return 0;
}
@Override
public int getDamageToComponent(ItemStack var1) {
return 0;
}
@Override
public boolean explodesOnComponentBreak(ItemStack var1) {
return false;
}
}
|