diff options
author | kstvr32 <109012629+kstvr32@users.noreply.github.com> | 2023-05-05 13:25:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 19:25:50 +0200 |
commit | 410b4d15111cd0d53adfbd302907b80b6a45c3c3 (patch) | |
tree | d94e8cde47b2797bedb9f1db75531d781e6a6b61 /src/main | |
parent | 260fef878f6b66f94fe22d4f3d5ce53ccb91f0c5 (diff) | |
download | GT5-Unofficial-410b4d15111cd0d53adfbd302907b80b6a45c3c3.tar.gz GT5-Unofficial-410b4d15111cd0d53adfbd302907b80b6a45c3c3.tar.bz2 GT5-Unofficial-410b4d15111cd0d53adfbd302907b80b6a45c3c3.zip |
Add channels to MABS (#618)
* add channels to MABS
* update build scripts
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java index c12d15163e..0def09f7c2 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java @@ -3,6 +3,7 @@ package gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.production.m import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock; import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain; import static com.gtnewhorizon.structurelib.structure.StructureUtility.onElementPass; +import static com.gtnewhorizon.structurelib.structure.StructureUtility.withChannel; import static gregtech.api.enums.GT_HatchElement.Energy; import static gregtech.api.enums.GT_HatchElement.ExoticEnergy; import static gregtech.api.enums.GT_HatchElement.InputBus; @@ -113,13 +114,18 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter " AAAAA ", " AAAAA ", " CCCCC ", " ZZZZZ " } }) .addElement( 'B', - ofChain( - onElementPass( - te -> te.hasNormalCoils = false, - ofCoil( - GregTechMetaTileEntity_MegaAlloyBlastSmelter::setCoilLevel, - GregTechMetaTileEntity_MegaAlloyBlastSmelter::getCoilLevel)), - onElementPass(te -> te.hasNormalCoils = true, ofBlock(ModBlocks.blockCasingsMisc, 14)))) + withChannel( + "coil", + ofChain( + onElementPass( + te -> te.hasNormalCoils = false, + ofCoil( + GregTechMetaTileEntity_MegaAlloyBlastSmelter::setCoilLevel, + GregTechMetaTileEntity_MegaAlloyBlastSmelter::getCoilLevel)), + onElementPass( + te -> te.hasNormalCoils = true, + ofBlock(ModBlocks.blockCasingsMisc, 14))))) + .addElement( 'Z', buildHatchAdder(GregTechMetaTileEntity_MegaAlloyBlastSmelter.class) @@ -133,7 +139,11 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter .buildAndChain(ofBlock(ModBlocks.blockCasingsMisc, 15))) .addElement('D', ofBlock(ModBlocks.blockCasingsMisc, 15)) .addElement('C', ofBlock(ModBlocks.blockCasingsMisc, 14)) - .addElement('A', BorosilicateGlass.ofBoroGlass((byte) -1, (te, t) -> te.glassTier = t, te -> te.glassTier)) + .addElement( + 'A', + withChannel( + "glass", + BorosilicateGlass.ofBoroGlass((byte) -1, (te, t) -> te.glassTier = t, te -> te.glassTier))) .addElement('F', Muffler.newAny(TAE.GTPP_INDEX(15), 3)).build(); public GregTechMetaTileEntity_MegaAlloyBlastSmelter(int aID, String aName, String aNameRegional) { |