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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
|
package com.detrav.tileentities;
/**
* Created by Detrav on 13.12.2016.
*/
import com.detrav.enums.DetravItemList;
import com.detrav.items.DetravMetaGeneratedItem01;
import com.detrav.items.DetravMetaGeneratedTool01;
import gregtech.api.GregTech_API;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
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_MultiBlockBase;
import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.objects.ItemData;
import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
import gregtech.common.blocks.GT_Block_Ores_Abstract;
import gregtech.common.blocks.GT_TileEntity_Ores;
import net.minecraft.block.Block;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.ChunkPosition;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
import java.util.ArrayList;
import java.util.zip.Inflater;
public class Detrav_MetaTileEntity_AdvMiner2 extends GT_MetaTileEntity_MultiBlockBase {
private final ArrayList<ChunkPosition> mMineList = new ArrayList();
public Detrav_MetaTileEntity_AdvMiner2(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
}
public Detrav_MetaTileEntity_AdvMiner2(String aName) {
super(aName);
}
public String[] getDescription() {
return new String[]{
"Controller Block for the Ore Drilling Plant V",
"Default size is one chunk, use circuit configuration",
"to increase the size, {config}*2 + 1 chunks",
"Size(WxHxD): 3x7x3, Controller (Front middle bottom)",
"3x1x3 Base of Solid Steel Casings",
"1x3x1 Solid Steel Casing pillar (Center of base)",
"1x3x1 Steel Frame Boxes (Each Steel pillar side and on top)",
"1x Input Hatch (Any bottom layer casing)",
"1x Output Bus (Any bottom layer casing)",
"1x Maintenance Hatch (Any bottom layer casing)",
"1x MV+ Energy Hatch (Any bottom layer casing)"};
}
public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) {
if (aSide == aFacing) {
return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_OIL_DRILL_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_OIL_DRILL)};
}
return new ITexture[]{Textures.BlockIcons.CASING_BLOCKS[16]};
}
public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) {
return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "AdvMiner2.png");
}
@Override
public boolean checkRecipe(ItemStack aStack) {
if(!moveFirst())
return false;
if (mInputHatches == null || mInputHatches.get(0).mFluid == null || mInputHatches.get(0).mFluid.getFluid().getID() != ItemList.sDrillingFluid.getID()) {
return false;
}
FluidStack tFluid = mInputHatches.get(0).mFluid.copy();
if (tFluid == null) {
return false;
}
if (tFluid.amount < 100) {
return false;
}
tFluid.amount = 100;
depleteInput(tFluid);
long tVoltage = getMaxInputVoltage();
if (getBaseMetaTileEntity().getRandomNumber(10) <= 4 &&
DetravMetaGeneratedItem01.INSTANCE.isConfiguredCircuit(mInventory[1])) {
if (mMineList.isEmpty()) {
int x = getXCurrent();
int z = getZCurrent();
World w = getBaseMetaTileEntity().getWorld();
if(w==null) return false;
Chunk c = w.getChunkProvider().provideChunk(x>>4,z>>4);
int x1 = x & 15;
int z1 = z & 15;
int yTo = getYTo();
for(int yLevel = getYFrom(); yLevel>=yTo; yLevel --)
{
Block tBlock = c.getBlock(x1,yLevel,z1);
int tMetaID = c.getBlockMetadata(x1,yLevel,z1);
if (tBlock instanceof GT_Block_Ores_Abstract) {
TileEntity tTileEntity = c.getTileEntityUnsafe(x1,yLevel,z1);
if ((tTileEntity!=null)
&& (tTileEntity instanceof GT_TileEntity_Ores)
&& ((GT_TileEntity_Ores) tTileEntity).mNatural == true
&& !mMineList.contains(new ChunkPosition(tTileEntity.xCoord, tTileEntity.yCoord, tTileEntity.zCoord))) {
mMineList.add(new ChunkPosition(tTileEntity.xCoord, tTileEntity.yCoord, tTileEntity.zCoord));
}
}
else {
ItemData tAssotiation = GT_OreDictUnificator.getAssociation(new ItemStack(tBlock, 1, tMetaID));
if ((tAssotiation != null) && (tAssotiation.mPrefix.toString().startsWith("ore"))) {
ChunkPosition cp = new ChunkPosition(x, yLevel, z);
if (!mMineList.contains(cp)) {
mMineList.add(cp);
}
}
}
}
}
ArrayList<ItemStack> tDrops = new ArrayList();
Block tMineBlock = null;
ChunkPosition mle = null;;
while ((tMineBlock==null || tMineBlock == Blocks.air) && !mMineList.isEmpty()) {
mle = mMineList.get(0);
mMineList.remove(0);
tMineBlock = getBaseMetaTileEntity()
.getWorld()
.getChunkProvider()
.provideChunk( mle.chunkPosX >> 4, mle.chunkPosZ >> 4 )
.getBlock(mle.chunkPosX&15, mle.chunkPosY, mle.chunkPosZ&15);
}
if (tMineBlock!=null && tMineBlock!=Blocks.air) {
int metadata = getBaseMetaTileEntity().getMetaID(mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ);
boolean silkTouch = tMineBlock.canSilkHarvest(getBaseMetaTileEntity().getWorld(), null, mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ, metadata);
if (silkTouch){
ItemStack IS = new ItemStack(tMineBlock);
IS.setItemDamage(metadata);
IS.stackSize=1;
tDrops.add(IS);
}
else{
tDrops = tMineBlock.getDrops(getBaseMetaTileEntity().getWorld(), mle.chunkPosX, mle.chunkPosY, mle.chunkPosZ, metadata, 1);
}
getBaseMetaTileEntity().getWorld().setBlock(mle.chunkPosX, mle.chunkPosY , mle.chunkPosZ,Blocks.dirt);
if (!tDrops.isEmpty()) {
ItemData tData = GT_OreDictUnificator.getItemData(tDrops.get(0).copy());
if (tData.mPrefix != OrePrefixes.crushed && tData.mMaterial.mMaterial != Materials.Oilsands) {
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sMaceratorRecipes.findRecipe(getBaseMetaTileEntity(), false, tVoltage, null, tDrops.get(0).copy());
if (tRecipe != null) {
this.mOutputItems = new ItemStack[tRecipe.mOutputs.length];
for (int g = 0; g < mOutputItems.length; g++) {
mOutputItems[g] = tRecipe.mOutputs[g].copy();
if (getBaseMetaTileEntity().getRandomNumber(10000) < tRecipe.getOutputChance(g)) {
mOutputItems[g].stackSize *= getBaseMetaTileEntity().getRandomNumber(4) + 1;
}
}
} else {
this.mOutputItems = new ItemStack[tDrops.size()];
for (int g = 0; g < mOutputItems.length; g++) {
mOutputItems[g] = tDrops.get(g).copy();
}
}
} else {
this.mOutputItems = null;
ItemStack[] tStack = new ItemStack[tDrops.size()];
for (int j = 0; j < tDrops.size(); j++) {
tStack[j] = tDrops.get(j).copy();
tStack[j].stackSize = tStack[j].stackSize * (getBaseMetaTileEntity().getRandomNumber(4) + 1);
}
mOutputItems = tStack;
}
}
}
else
{
if (mEnergyHatches.size() > 0 && mEnergyHatches.get(0).getEUVar() > (512 + getMaxInputVoltage() * 4)) {
moveNext();
}
}
}
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
int tEU = 48;
int tDuration = 24;
if (tEU <= 16) {
this.mEUt = (tEU * (1 << tTier - 1) * (1 << tTier - 1));
this.mMaxProgresstime = (tDuration / (1 << tTier - 1));
} else {
this.mEUt = tEU;
this.mMaxProgresstime = tDuration;
while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) {
this.mEUt *= 4;
this.mMaxProgresstime /= 2;
}
}
if (this.mEUt > 0) {
this.mEUt = (-this.mEUt);
}
this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
return true;
}
private boolean moveFirst() {
int circuit_config = 1;
if (mInventory[1] == null)
return false;
if (mInventory[1].stackSize > 1) return false;
if (mInventory[1].getUnlocalizedName().startsWith("gt.integrated_circuit")) {
circuit_config = mInventory[1].getItemDamage();
circuit_config *= 2;
circuit_config++;
{
ItemStack aCircuit = mInventory[1];
NBTTagCompound aNBT = aCircuit.getTagCompound();
if (aNBT == null) {
aNBT = new NBTTagCompound();
NBTTagCompound detravPosition = new NBTTagCompound();
aNBT.setTag("DetravPosition", detravPosition);
aCircuit.setTagCompound(aNBT);
}
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null) {
detravPosition = new NBTTagCompound();
aNBT.setTag("DetravPosition", detravPosition);
}
int x_from = ((getBaseMetaTileEntity().getXCoord() >> 4) - circuit_config + 1) * 16 - 16 * 3;
int x_to = ((getBaseMetaTileEntity().getXCoord() >> 4) + circuit_config) * 16 + 16 * 3;
int z_from = ((getBaseMetaTileEntity().getZCoord() >> 4) - circuit_config + 1) * 16 - 16 * 3;
int z_to = ((getBaseMetaTileEntity().getZCoord() >> 4) + circuit_config) * 16 + 16 * 3;
int x_current = x_from;
int z_current = z_from;
if(!detravPosition.hasKey("Configured")) {
detravPosition.setBoolean("Configured", true);
detravPosition.setInteger("XCurrent",x_current);
detravPosition.setInteger("ZCurrent",z_current);
}
else
{
if(detravPosition.hasKey("XCurrent"))
x_current = detravPosition.getInteger("XCurrent");
if(detravPosition.hasKey("ZCurrent"))
z_current = detravPosition.getInteger("ZCurrent");
}
World aWorld = getBaseMetaTileEntity().getWorld();
IChunkProvider provider = aWorld.getChunkProvider();
for (int i = x_current; i <= x_to; i += 16)
for (int j = z_current; j <= z_to; j += 16) {
if (!provider.provideChunk(i >> 4, j >> 4).isTerrainPopulated) {
provider.populate(provider, (i >> 4), (j >> 4) );
detravPosition.setInteger("XCurrent",i);
detravPosition.setInteger("ZCurrent",j);
return true;
}
}
}
{
mInventory[1] = DetravItemList.ConfiguredCircuit.get(1);
ItemStack aCircuit = mInventory[1];
//in here if circuit is empty set data to chunk
NBTTagCompound aNBT = aCircuit.getTagCompound();
if (aNBT == null) {
aNBT = new NBTTagCompound();
NBTTagCompound detravPosition = new NBTTagCompound();
aNBT.setTag("DetravPosition", detravPosition);
aCircuit.setTagCompound(aNBT);
}
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null) {
detravPosition = new NBTTagCompound();
aNBT.setTag("DetravPosition", detravPosition);
}
int x_from = ((getBaseMetaTileEntity().getXCoord() >> 4) - circuit_config + 1) * 16;
int x_to = ((getBaseMetaTileEntity().getXCoord() >> 4) + circuit_config) * 16;
int x_current = x_from;
int z_from = ((getBaseMetaTileEntity().getZCoord() >> 4) - circuit_config + 1) * 16;
int z_to = ((getBaseMetaTileEntity().getZCoord() >> 4) + circuit_config) * 16;
int z_current = z_from;
int y_from = getBaseMetaTileEntity().getYCoord() - 1;
int y_to = 1;
detravPosition.setInteger("XFrom", x_from);
detravPosition.setInteger("XTo", x_to);
detravPosition.setInteger("XCurrent", x_current);
detravPosition.setInteger("ZFrom", z_from);
detravPosition.setInteger("ZTo", z_to);
detravPosition.setInteger("ZCurrent", z_current);
detravPosition.setInteger("YFrom",y_from);
detravPosition.setInteger("YTo", y_to);
}
}
if (DetravMetaGeneratedItem01.INSTANCE.isConfiguredCircuit(mInventory[1])) {
NBTTagCompound aNBT = mInventory[1].getTagCompound();
if (aNBT == null) {
return false;
}
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null) {
return false;
}
if (detravPosition.hasKey("Finished"))
return !detravPosition.getBoolean("Finished");
return true;
}
return false;
}
private int getXCurrent()
{
int fakeResult = getBaseMetaTileEntity().getXCoord();
if(mInventory[1] == null) return fakeResult;
ItemStack aCircuit = mInventory[1];
NBTTagCompound aNBT = aCircuit.getTagCompound();
if(aNBT == null) return fakeResult;
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null ) return fakeResult;
if(detravPosition.hasKey("Finished"))
if(detravPosition.getBoolean("Finished"))
return fakeResult;
return detravPosition.getInteger("XCurrent");
}
private int getYFrom()
{
int fakeResult = getBaseMetaTileEntity().getYCoord()-1;
if(mInventory[1] == null) return fakeResult;
ItemStack aCircuit = mInventory[1];
NBTTagCompound aNBT = aCircuit.getTagCompound();
if(aNBT == null) return fakeResult;
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null ) return fakeResult;
if(detravPosition.hasKey("Finished"))
if(detravPosition.getBoolean("Finished"))
return fakeResult;
if(!detravPosition.hasKey("YFrom"))
return fakeResult;
int y_from = detravPosition.getInteger("YFrom");;
if(y_from < 1 || y_from > 254)
return fakeResult;
return y_from;
}
private int getYTo() {
int fakeResult = getBaseMetaTileEntity().getYCoord() - 1;
if (mInventory[1] == null) return fakeResult;
ItemStack aCircuit = mInventory[1];
NBTTagCompound aNBT = aCircuit.getTagCompound();
if (aNBT == null) return fakeResult;
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null) return fakeResult;
if (detravPosition.hasKey("Finished"))
if (detravPosition.getBoolean("Finished"))
return fakeResult;
if(!detravPosition.hasKey("YTo"))
return 1;
int y_to = detravPosition.getInteger("YTo");
if (y_to > 254)
return fakeResult;
if (y_to < 1)
return 1;
return y_to;
}
private int getZCurrent()
{
int fakeResult = getBaseMetaTileEntity().getZCoord();
if(mInventory[1] == null) return fakeResult;
ItemStack aCircuit = mInventory[1];
NBTTagCompound aNBT = aCircuit.getTagCompound();
if(aNBT == null) return fakeResult;
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null ) return fakeResult;
if(detravPosition.hasKey("Finished"))
if(detravPosition.getBoolean("Finished"))
return fakeResult;
return detravPosition.getInteger("ZCurrent");
}
private boolean moveNext() {
if(mInventory[1] == null) return false;
ItemStack aCircuit = mInventory[1];
NBTTagCompound aNBT = aCircuit.getTagCompound();
if(aNBT == null) return false;
NBTTagCompound detravPosition = aNBT.getCompoundTag("DetravPosition");
if (detravPosition == null ) return false;
if(detravPosition.hasKey("Finished"))
if(detravPosition.getBoolean("Finished"))
return false;
int x_from = detravPosition.getInteger("XFrom");
int z_from = detravPosition.getInteger("ZFrom");
int x_to = detravPosition.getInteger("XTo");
int z_to = detravPosition.getInteger("ZTo");
int x_current = detravPosition.getInteger("XCurrent");
int z_current = detravPosition.getInteger("ZCurrent");
int y_from = detravPosition.getInteger("YFrom");
int y_to = detravPosition.getInteger("YTo");
if(x_from > x_to)
{
int temp = x_to;
x_to = x_from;
x_from = temp;
detravPosition.setInteger("XFrom",x_from);
detravPosition.setInteger("XTo",x_to);
}
if(z_from > z_to)
{
int temp = z_to;
z_to = z_from;
z_from = temp;
detravPosition.setInteger("ZFrom",z_from);
detravPosition.setInteger("ZTo",z_to);
}
if(y_from < y_to)
{
int temp = y_to;
y_to = y_from;
y_from = temp;
detravPosition.setInteger("YFrom",y_from);
detravPosition.setInteger("YTo",y_to);
}
if(z_current < z_to)
z_current++;
else {
if (x_current < x_to) {
z_current = z_from;
x_current++;
} else {
detravPosition.setBoolean("Finished", true);
if (detravPosition.hasKey("Percent"))
detravPosition.removeTag("Percent");
return false;
}
}
detravPosition.setInteger("Percent", (int)(
((float)(z_current - z_from + (x_current - x_from) * (z_to - z_from )))
* 100f
/((float)( (x_to - x_from + 1 )*(z_to-z_from)))));
detravPosition.setInteger("XCurrent",x_current);
detravPosition.setInteger("ZCurrent",z_current);
return true;
}
@Override
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;
int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
for (int i = -1; i < 2; i++) {
for (int j = -1; j < 2; j++) {
if ((xDir + i != 0) || (zDir + j != 0)) {
IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16))) {
if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings2) {
return false;
}
if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 0) {
return false;
}
}
}
}
}
for (int y = 1; y < 4; y++) {
if (aBaseMetaTileEntity.getBlockOffset(xDir, y, zDir) != GregTech_API.sBlockCasings2) {
return false;
}
if (aBaseMetaTileEntity.getBlockOffset(xDir + 1, y, zDir) != GregTech_API.sBlockMachines) {
return false;
}
if (aBaseMetaTileEntity.getBlockOffset(xDir - 1, y, zDir) != GregTech_API.sBlockMachines) {
return false;
}
if (aBaseMetaTileEntity.getBlockOffset(xDir, y, zDir + 1) != GregTech_API.sBlockMachines) {
return false;
}
if (aBaseMetaTileEntity.getBlockOffset(xDir, y, zDir - 1) != GregTech_API.sBlockMachines) {
return false;
}
if (aBaseMetaTileEntity.getBlockOffset(xDir, y + 3, zDir) != GregTech_API.sBlockMachines) {
return false;
}
}
return true;
}
@Override
public boolean isCorrectMachinePart(ItemStack aStack) {
return true;
}
@Override
public int getMaxEfficiency(ItemStack aStack) {
return 10000;
}
@Override
public int getPollutionPerTick(ItemStack aStack) {
return 0;
}
@Override
public int getDamageToComponent(ItemStack aStack) {
return 0;
}
@Override
public boolean explodesOnComponentBreak(ItemStack aStack) {
return false;
}
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new Detrav_MetaTileEntity_AdvMiner2(this.mName);
}
}
|