diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-08-14 10:52:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-14 02:52:59 +0000 |
commit | 35c9f23b9c7667250ebd589a52c2f2b1cc01bb62 (patch) | |
tree | a82714751110b1a321a2e6b833b879e6775caaf3 /src/main/java/gregtech/common/tileentities | |
parent | 971e8dd33307eb28be26a86646a8f252e02f6acc (diff) | |
download | GT5-Unofficial-35c9f23b9c7667250ebd589a52c2f2b1cc01bb62.tar.gz GT5-Unofficial-35c9f23b9c7667250ebd589a52c2f2b1cc01bb62.tar.bz2 GT5-Unofficial-35c9f23b9c7667250ebd589a52c2f2b1cc01bb62.zip |
add back exotic energy hatch to PA (#1253)
Diffstat (limited to 'src/main/java/gregtech/common/tileentities')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java index 59a3b4f362..7184c8ccd7 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java @@ -1,5 +1,6 @@ package gregtech.common.tileentities.machines.multi; +import com.google.common.collect.ImmutableList; import com.gtnewhorizon.structurelib.structure.IStructureElement; import gregtech.GT_Mod; import gregtech.api.GregTech_API; @@ -7,6 +8,7 @@ import gregtech.api.enums.GT_Values; import gregtech.api.enums.Textures; import gregtech.api.enums.Textures.BlockIcons; import gregtech.api.gui.GT_GUIContainer_MultiMachine; +import gregtech.api.interfaces.IHatchElement; import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; @@ -34,6 +36,9 @@ import java.util.Objects; import java.util.stream.Stream; import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock; +import static gregtech.api.enums.GT_HatchElement.*; +import static gregtech.api.enums.GT_HatchElement.Energy; +import static gregtech.api.enums.GT_HatchElement.Maintenance; import static gregtech.api.enums.GT_Values.VN; import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_PROCESSING_ARRAY; import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_PROCESSING_ARRAY_ACTIVE; @@ -450,6 +455,11 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_CubicMu } @Override + protected List<IHatchElement<? super GT_MetaTileEntity_CubicMultiBlockBase<?>>> getAllowedHatches() { + return ImmutableList.of(InputHatch, OutputHatch, InputBus, OutputBus, Muffler, Maintenance, Energy, ExoticEnergy); + } + + @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) { mExoticEnergyHatches.clear(); return super.checkMachine(aBaseMetaTileEntity, aStack); |