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
579
580
581
582
583
584
585
586
587
588
589
|
package gregtech.common.tileentities.machines.multi;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
import static gregtech.api.enums.GTValues.AuthorFourIsTheNumber;
import static gregtech.api.enums.HatchElement.*;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ENGRAVER;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ENGRAVER_ACTIVE;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ENGRAVER_ACTIVE_GLOW;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_ENGRAVER_GLOW;
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static gregtech.api.util.GTStructureUtility.ofFrame;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Nonnull;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
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 bartworks.API.BorosilicateGlass;
import gregtech.api.GregTechAPI;
import gregtech.api.enums.GTValues;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
import gregtech.api.enums.VoltageIndex;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.logic.ProcessingLogic;
import gregtech.api.metatileentity.implementations.MTEExtendedPowerMultiBlockBase;
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.recipe.check.SimpleCheckRecipeResult;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GTOreDictUnificator;
import gregtech.api.util.GTRecipe;
import gregtech.api.util.GTUtility;
import gregtech.api.util.MultiblockTooltipBuilder;
import gregtech.common.blocks.BlockCasings10;
import gregtech.common.tileentities.render.TileEntityLaser;
import gtPlusPlus.core.util.minecraft.PlayerUtils;
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
import tectech.thing.metaTileEntity.hatch.MTEHatchDynamoTunnel;
public class MTEIndustrialLaserEngraver extends MTEExtendedPowerMultiBlockBase<MTEIndustrialLaserEngraver>
implements ISurvivalConstructable {
private static final String STRUCTURE_PIECE_MAIN = "main";
private static final IStructureDefinition<MTEIndustrialLaserEngraver> STRUCTURE_DEFINITION = StructureDefinition
.<MTEIndustrialLaserEngraver>builder()
.addShape(
STRUCTURE_PIECE_MAIN,
(new String[][] { { " f ", " ", " ", " ", " a~a " },
{ " fsf ", " g ", " g ", "a g a", "aaraa" }, { "faaaf", "f f", "f f", "a a", "aaaaa" },
{ "aaaaa", "a a a", "a a a", "a a a", "aaaaa" }, { "aaaaa", "aaaaa", "aaaaa", "aaaaa", "aaaaa" } }))
.addElement(
'a',
buildHatchAdder(MTEIndustrialLaserEngraver.class)
.atLeast(InputBus, OutputBus, InputHatch, OutputHatch, Maintenance, Energy)
.casingIndex(((BlockCasings10) GregTechAPI.sBlockCasings10).getTextureIndex(1))
.dot(1)
.buildAndChain(
onElementPass(MTEIndustrialLaserEngraver::onCasingAdded, ofBlock(GregTechAPI.sBlockCasings10, 1))))
.addElement('f', ofFrame(Materials.TungstenSteel))
.addElement(
'g',
BorosilicateGlass
.ofBoroGlass((byte) 0, (byte) 1, Byte.MAX_VALUE, (te, t) -> te.glassTier = t, te -> te.glassTier))
.addElement('r', ofBlock(GregTechAPI.sLaserRender, 0))
.addElement(
's',
buildHatchAdder(MTEIndustrialLaserEngraver.class).adder(MTEIndustrialLaserEngraver::addLaserSource)
.hatchClass(MTEHatchDynamoTunnel.class)
.casingIndex(((BlockCasings10) GregTechAPI.sBlockCasings10).getTextureIndex(1))
.dot(3)
.build())
.build();
protected TileEntityLaser renderer;
private byte glassTier = 0;
private MTEHatchDynamoTunnel laserSource = null;
private int laserAmps = 0;
private int laserTier = 0;
private String tierName = "LV";
private boolean addLaserSource(IGregTechTileEntity aTileEntity, int aBaseCasingIndex) {
if (aTileEntity != null) {
final IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity();
if (aMetaTileEntity instanceof MTEHatchDynamoTunnel) {
laserSource = (MTEHatchDynamoTunnel) aMetaTileEntity;
laserSource.updateTexture(aBaseCasingIndex);
// Snap the laser source toward the plate. Player can rotate it if they want after but this will look
// nicer
switch (getRotation()) {
case NORMAL -> laserSource.getBaseMetaTileEntity()
.setFrontFacing(ForgeDirection.DOWN);
case UPSIDE_DOWN -> laserSource.getBaseMetaTileEntity()
.setFrontFacing(ForgeDirection.UP);
case CLOCKWISE -> laserSource.getBaseMetaTileEntity()
.setFrontFacing(getDirection().getRotation(ForgeDirection.UP));
default -> laserSource.getBaseMetaTileEntity()
.setFrontFacing(getDirection().getRotation(ForgeDirection.DOWN));
}
// Cube root the amperage to get the parallels
laserAmps = (int) Math.cbrt(laserSource.maxAmperesOut());
laserTier = (int) laserSource.getOutputTier();
tierName = GTValues.VN[laserTier + 1];
return true;
}
}
return false;
}
public MTEIndustrialLaserEngraver(final int aID, final String aName, final String aNameRegional) {
super(aID, aName, aNameRegional);
}
public MTEIndustrialLaserEngraver(String aName) {
super(aName);
}
@Override
public IStructureDefinition<MTEIndustrialLaserEngraver> getStructureDefinition() {
return STRUCTURE_DEFINITION;
}
@Override
public boolean isCorrectMachinePart(ItemStack aStack) {
return true;
}
@Override
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new MTEIndustrialLaserEngraver(this.mName);
}
@Override
public ITexture[] getTexture(IGregTechTileEntity baseMetaTileEntity, ForgeDirection side, ForgeDirection aFacing,
int colorIndex, boolean aActive, boolean redstoneLevel) {
ITexture[] rTexture;
if (side == aFacing) {
if (aActive) {
rTexture = new ITexture[] {
Textures.BlockIcons
.getCasingTextureForId(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings10, 1)),
TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ENGRAVER_ACTIVE)
.extFacing()
.build(),
TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ENGRAVER_ACTIVE_GLOW)
.extFacing()
.glow()
.build() };
} else {
rTexture = new ITexture[] {
Textures.BlockIcons
.getCasingTextureForId(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings10, 1)),
TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ENGRAVER)
.extFacing()
.build(),
TextureFactory.builder()
.addIcon(OVERLAY_FRONT_ENGRAVER_GLOW)
.extFacing()
.glow()
.build() };
}
} else {
rTexture = new ITexture[] { Textures.BlockIcons
.getCasingTextureForId(GTUtility.getCasingTextureIndex(GregTechAPI.sBlockCasings10, 1)) };
}
return rTexture;
}
private boolean stopAllRendering = false;
@Override
public void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPlayer, float aX, float aY, float aZ) {
stopAllRendering = !stopAllRendering;
if (stopAllRendering) {
PlayerUtils.messagePlayer(aPlayer, "Rendering off");
if (renderer != null) renderer.setShouldRender(false);
} else PlayerUtils.messagePlayer(aPlayer, "Rendering on");
}
@Override
public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrenchingSide, EntityPlayer aPlayer,
float aX, float aY, float aZ, ItemStack aTool) {
if (aPlayer.isSneaking()) {
batchMode = !batchMode;
if (batchMode) {
GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("misc.BatchModeTextOn"));
} else {
GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("misc.BatchModeTextOff"));
}
return true;
} else {
if (renderer != null) {
renderer.toggleRealism();
PlayerUtils.messagePlayer(aPlayer, "Toggling realism!");
return true;
}
}
return false;
}
@Override
public void onBlockDestroyed() {
if (renderer != null) renderer.setShouldRender(false);
super.onBlockDestroyed();
}
@Override
protected MultiblockTooltipBuilder createTooltip() {
MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder();
tt.addMachineType("Laser Engraver")
.addInfo("200% faster than single block machines of the same voltage")
.addInfo("Uses 80% of the EU normally required")
.addInfo("Laser source hatch determines maximum recipe tier and parallels")
.addInfo("Can perform recipes up to laser source tier + 1")
.addInfo("Parallels equal to the cube root of laser source amperage input")
.addInfo("Glass tier determines maximum laser source tier")
.addInfo("UMV glass accepts all laser source hatches")
.addInfo("Use screwdriver to disable laser rendering")
.addInfo("Use wire cutter to toggle realism mode if you hate angled lasers")
.beginStructureBlock(5, 5, 5, false)
.addController("Front Center")
.addCasingInfoMin("Laser Containment Casing", 35, false)
.addCasingInfoExactly("Tungstensteel Frame Box", 9, false)
.addOtherStructurePart("Laser Resistant Plate", "x1")
.addOtherStructurePart("Glass (Tiered)", "x3")
.addOtherStructurePart("Laser Source Hatch", "x1", 3)
.addInputBus("Any Casing", 1)
.addInputHatch("Any Casing", 1)
.addOutputBus("Any Casing", 1)
.addOutputHatch("Any Casing", 1)
.addEnergyHatch("Any Casing", 1)
.addMaintenanceHatch("Any Casing", 1)
.toolTipFinisher(AuthorFourIsTheNumber);
return tt;
}
@Override
public void construct(ItemStack stackSize, boolean hintsOnly) {
buildPiece(STRUCTURE_PIECE_MAIN, stackSize, hintsOnly, 2, 4, 0);
}
@Override
public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env) {
if (mMachine) return -1;
return survivialBuildPiece(STRUCTURE_PIECE_MAIN, stackSize, 2, 4, 0, elementBudget, env, false, true);
}
private int mCasingAmount;
private void onCasingAdded() {
mCasingAmount++;
}
private boolean findLaserRenderer(World w, int x, int y, int z) {
ForgeDirection opposite = getDirection().getOpposite();
x = x + opposite.offsetX;
y = y + opposite.offsetY;
z = z + opposite.offsetZ;
if (w.getTileEntity(x, y, z) instanceof TileEntityLaser laser) {
renderer = laser;
renderer.setRotationFields(getDirection(), getRotation(), getFlip());
return true;
}
return false;
}
@Override
public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) {
mCasingAmount = 0;
glassTier = 0;
IGregTechTileEntity base = getBaseMetaTileEntity();
if (!checkPiece(STRUCTURE_PIECE_MAIN, 2, 4, 0)) return false;
if (mCasingAmount < 35) return false;
if (laserSource == null) return false;
if (!findLaserRenderer(base.getWorld(), base.getXCoord(), base.getYCoord(), base.getZCoord())) return false;
return glassTier >= VoltageIndex.UMV || laserSource.mTier <= glassTier;
}
private static String getUniqueIdentifier(ItemStack is) {
return is.getItem()
.getUnlocalizedName() + is.getItemDamage();
}
@Override
protected ProcessingLogic createProcessingLogic() {
return new ProcessingLogic() {
@NotNull
@Override
protected CheckRecipeResult validateRecipe(@Nonnull GTRecipe recipe) {
if (laserTier < VoltageIndex.UXV && recipe.mEUt > (GTValues.V[laserTier + 1])) {
return SimpleCheckRecipeResult.ofFailure("laser_insufficient");
}
return CheckRecipeResultRegistry.SUCCESSFUL;
}
@NotNull
@Override
protected CheckRecipeResult onRecipeStart(@NotNull GTRecipe recipe) {
if (!stopAllRendering) {
Colors c = Colors.Red;
for (int i = 0; i < recipe.mInputs.length; i++) {
String uid = getUniqueIdentifier(recipe.mInputs[i]);
if (lensColors.containsKey(uid)) {
c = lensColors.get(uid);
}
}
if (renderer != null) {
renderer.setColors(c.r, c.g, c.b);
renderer.setShouldRender(true);
}
}
return super.onRecipeStart(recipe);
}
@Override
public ProcessingLogic clear() {
if (renderer != null) renderer.setShouldRender(false);
return super.clear();
}
}.setSpeedBonus(1F / 3F)
.setEuModifier(0.8F)
.setMaxParallelSupplier(this::getMaxParallelRecipes);
}
@Override
public boolean isRotationChangeAllowed() {
return true;
}
private int getMaxParallelRecipes() {
return laserAmps;
}
@Override
public RecipeMap<?> getRecipeMap() {
return RecipeMaps.laserEngraverRecipes;
}
@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 int getRecipeCatalystPriority() {
return -10;
}
@Override
public boolean supportsVoidProtection() {
return true;
}
@Override
public boolean supportsBatchMode() {
return true;
}
@Override
public boolean supportsInputSeparation() {
return true;
}
@Override
public boolean supportsSingleRecipeLocking() {
return true;
}
@Override
protected void setProcessingLogicPower(ProcessingLogic logic) {
logic.setAvailableVoltage(GTUtility.roundUpVoltage(this.getMaxInputVoltage()));
logic.setAvailableAmperage(1L);
}
@Override
public void saveNBTData(NBTTagCompound aNBT) {
aNBT.setBoolean("stopAllRendering", stopAllRendering);
super.saveNBTData(aNBT);
}
@Override
public void loadNBTData(NBTTagCompound aNBT) {
if (aNBT.hasKey("stopAllRendering")) {
stopAllRendering = aNBT.getBoolean("stopAllRendering");
}
super.loadNBTData(aNBT);
}
@Override
public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x, int y,
int z) {
super.getWailaNBTData(player, tile, tag, world, x, y, z);
tag.setInteger("laserAmps", laserAmps);
tag.setString("tierName", tierName);
}
@Override
public void getWailaBody(ItemStack itemStack, List<String> currentTip, IWailaDataAccessor accessor,
IWailaConfigHandler config) {
super.getWailaBody(itemStack, currentTip, accessor, config);
final NBTTagCompound tag = accessor.getNBTData();
currentTip.add(
StatCollector.translateToLocal("GT5U.multiblock.parallelism") + ": "
+ EnumChatFormatting.WHITE
+ tag.getInteger("laserAmps")
+ EnumChatFormatting.RESET);
currentTip.add(
StatCollector.translateToLocal("GT5U.multiblock.maxtier") + ": "
+ EnumChatFormatting.WHITE
+ tag.getString("tierName")
+ EnumChatFormatting.RESET);
}
private enum Colors {
White(1, 1, 1),
Red(1, 0, 0),
Green(0, 1, 0),
Blue(0, 0, 1),
Yellow(1, 1, 0),
Purple(1, 0, 1),
Cyan(0, 1, 1),
Orange(1, 0.5F, 0),
Black(0, 0, 0),
Brown(0.647F, 0.164F, 0.164F);
final float r, g, b;
Colors(float r, float g, float b) {
this.r = r;
this.g = g;
this.b = b;
}
}
private static final Map<String, Colors> lensColors;
static {
lensColors = new HashMap<>();
// Black lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Forcicium, 1)), Colors.Black);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Forcillium, 1)), Colors.Black);
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.InfusedEntropy, 1)),
Colors.Black);
// White lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.NetherStar, 1)), Colors.White);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Dilithium, 1)), Colors.White);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Glass, 1)), Colors.White);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Diamond, 1)), Colors.Cyan);
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.InfusedOrder, 1)),
Colors.White);
// Green lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Emerald, 1)), Colors.Green);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Olivine, 1)), Colors.Green);
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.GreenSapphire, 1)),
Colors.Green);
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.InfusedEarth, 1)),
Colors.Green);
// Red lenses
lensColors.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Ruby, 1)), Colors.Red);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Firestone, 1)), Colors.Red);
lensColors.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Jasper, 1)), Colors.Red);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.FoolsRuby, 1)), Colors.Red);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.GarnetRed, 1)), Colors.Red);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.InfusedFire, 1)), Colors.Red);
// Blue lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.BlueTopaz, 1)), Colors.Blue);
lensColors.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Opal, 1)), Colors.Blue);
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.InfusedWater, 1)),
Colors.Blue);
// Yellow lenses
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.GarnetYellow, 1)),
Colors.Yellow);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Force, 1)), Colors.Yellow);
lensColors.put(
getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.InfusedAir, 1)),
Colors.Yellow);
// Purple lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Amethyst, 1)), Colors.Purple);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Tanzanite, 1)), Colors.Purple);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Sapphire, 1)), Colors.Purple);
// Cyan lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.EnderEye, 1)), Colors.Cyan);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.EnderPearl, 1)), Colors.Cyan);
// Orange lenses
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Topaz, 1)), Colors.Orange);
lensColors
.put(getUniqueIdentifier(GTOreDictUnificator.get(OrePrefixes.lens, Materials.Amber, 1)), Colors.Orange);
// Time to manually define a bunch of lenses based on id
lensColors.put("gt.bwMetaGeneratedlens1", Colors.Yellow);
lensColors.put("gt.bwMetaGeneratedlens4", Colors.White);
lensColors.put("gt.bwMetaGeneratedlens5", Colors.Black);
lensColors.put("gt.bwMetaGeneratedlens7", Colors.Green);
lensColors.put("gt.bwMetaGeneratedlens8", Colors.Green);
lensColors.put("gt.bwMetaGeneratedlens9", Colors.White);
lensColors.put("gt.bwMetaGeneratedlens19", Colors.Red);
lensColors.put("gt.bwMetaGeneratedlens20", Colors.White);
lensColors.put("gt.bwMetaGeneratedlens21", Colors.Brown);
lensColors.put("gt.bwMetaGeneratedlens22", Colors.Orange);
lensColors.put("gt.bwMetaGeneratedlens23", Colors.Black);
lensColors.put("gt.bwMetaGeneratedlens24", Colors.White);
lensColors.put("gt.bwMetaGeneratedlens25", Colors.Green);
lensColors.put("gt.bwMetaGeneratedlens35", Colors.Yellow);
lensColors.put("gt.bwMetaGeneratedlens36", Colors.Purple);
lensColors.put("gt.bwMetaGeneratedlens43", Colors.Green);
lensColors.put("gt.bwMetaGeneratedlens89", Colors.Green);
lensColors.put("gt.bwMetaGeneratedlens91", Colors.Purple);
lensColors.put("gt.bwMetaGeneratedlens10023", Colors.Red);
lensColors.put("gt.bwMetaGeneratedlens11499", Colors.Green);
lensColors.put("gt.bwMetaGeneratedlens11358", Colors.Red);
lensColors.put("MU-metaitem.0132140", Colors.Purple);
//
}
}
|