diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-08-25 20:27:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 14:27:26 +0200 |
commit | 64796ccb33ca0333927e1279f21f791d92b90108 (patch) | |
tree | 15831b586ac2ad45f6f391a5d52fe1cedd4d09b0 /src | |
parent | f84ffa16206f45c76a2a81229390a49794e5c5b3 (diff) | |
download | GT5-Unofficial-64796ccb33ca0333927e1279f21f791d92b90108.tar.gz GT5-Unofficial-64796ccb33ca0333927e1279f21f791d92b90108.tar.bz2 GT5-Unofficial-64796ccb33ca0333927e1279f21f791d92b90108.zip |
allow separately selecting coil and glass tier using channels (#190)
Former-commit-id: 1071d5a84db3514f32952a992b7339f6c37a6478
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaBlastFurnace.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaBlastFurnace.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaBlastFurnace.java index 590223bdc4..ab03d1305c 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaBlastFurnace.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaBlastFurnace.java @@ -61,6 +61,7 @@ import static com.github.bartimaeusnek.bartworks.util.BW_Tooltip_Reference.MULTI import static com.github.bartimaeusnek.bartworks.util.RecipeFinderForParallel.getMultiOutput; import static com.github.bartimaeusnek.bartworks.util.RecipeFinderForParallel.handleParallelRecipe; import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose; +import static com.gtnewhorizon.structurelib.structure.StructureUtility.withChannel; import static gregtech.api.enums.GT_HatchElement.*; import static gregtech.api.enums.GT_Values.V; import static gregtech.api.enums.Textures.BlockIcons.*; @@ -82,8 +83,8 @@ public class GT_TileEntity_MegaBlastFurnace extends GT_TileEntity_MegaMultiBlock .buildAndChain(GregTech_API.sBlockCasings1, CASING_INDEX) ) .addElement('m', Muffler.newAny(CASING_INDEX, 2)) - .addElement('C', ofCoil(GT_TileEntity_MegaBlastFurnace::setCoilLevel, GT_TileEntity_MegaBlastFurnace::getCoilLevel)) - .addElement('g', BorosilicateGlass.ofBoroGlass((byte) 0, (byte) 1, Byte.MAX_VALUE, (te, t) -> te.glasTier = t, te -> te.glasTier)) + .addElement('C', withChannel("coil", ofCoil(GT_TileEntity_MegaBlastFurnace::setCoilLevel, GT_TileEntity_MegaBlastFurnace::getCoilLevel))) + .addElement('g', withChannel("glass", BorosilicateGlass.ofBoroGlass((byte) 0, (byte) 1, Byte.MAX_VALUE, (te, t) -> te.glasTier = t, te -> te.glasTier))) .addElement('b', buildHatchAdder(GT_TileEntity_MegaBlastFurnace.class) .atLeast(InputHatch, OutputHatch, InputBus, OutputBus, Maintenance, TTEnabledEnergyHatchElement.INSTANCE) .casingIndex(CASING_INDEX) |