diff options
| author | kstvr32 <109012629+kstvr32@users.noreply.github.com> | 2023-05-05 13:24:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-05 19:24:38 +0200 |
| commit | 7e1778c716446a5f474349eb6d4002d7fff747f4 (patch) | |
| tree | 6582923991e5c63edee78ccd2f6c993237460572 /src/main/java/com | |
| parent | 506c8bd707bf69662176c684e439e7963f6711a8 (diff) | |
| download | GT5-Unofficial-7e1778c716446a5f474349eb6d4002d7fff747f4.tar.gz GT5-Unofficial-7e1778c716446a5f474349eb6d4002d7fff747f4.tar.bz2 GT5-Unofficial-7e1778c716446a5f474349eb6d4002d7fff747f4.zip | |
add channels to mega oil cracker (#319)
Former-commit-id: e2d13c874dfc10e1f38501d2067dfb67bed044e8
Diffstat (limited to 'src/main/java/com')
| -rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaOilCracker.java | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaOilCracker.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaOilCracker.java index 213e5792c5..d7a6af2b4c 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaOilCracker.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/mega/GT_TileEntity_MegaOilCracker.java @@ -18,6 +18,7 @@ import static com.github.bartimaeusnek.bartworks.util.RecipeFinderForParallel.ge import static com.github.bartimaeusnek.bartworks.util.RecipeFinderForParallel.handleParallelRecipe; import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock; import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose; +import static com.gtnewhorizon.structurelib.structure.StructureUtility.withChannel; import static gregtech.api.enums.GT_HatchElement.InputHatch; import static gregtech.api.enums.GT_HatchElement.Maintenance; import static gregtech.api.enums.GT_HatchElement.OutputHatch; @@ -105,7 +106,12 @@ public class GT_TileEntity_MegaOilCracker extends GT_TileEntity_MegaMultiBlockBa "ppmmmmmmmmmpp" }, })) .addElement( 'c', - ofCoil(GT_TileEntity_MegaOilCracker::setCoilLevel, GT_TileEntity_MegaOilCracker::getCoilLevel)) + withChannel( + "coil", + ofCoil( + GT_TileEntity_MegaOilCracker::setCoilLevel, + GT_TileEntity_MegaOilCracker::getCoilLevel))) + .addElement('p', ofBlock(GregTech_API.sBlockCasings4, 1)) .addElement( 'l', @@ -126,12 +132,14 @@ public class GT_TileEntity_MegaOilCracker extends GT_TileEntity_MegaMultiBlockBa .newAny(CASING_INDEX, 4)) .addElement( 'g', - BorosilicateGlass.ofBoroGlass( - (byte) 0, - (byte) 1, - Byte.MAX_VALUE, - (te, t) -> te.glasTier = t, - te -> te.glasTier)) + withChannel( + "glass", + BorosilicateGlass.ofBoroGlass( + (byte) 0, + (byte) 1, + Byte.MAX_VALUE, + (te, t) -> te.glasTier = t, + te -> te.glasTier))) .build(); private byte glasTier; private HeatingCoilLevel heatLevel; |
