aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
diff options
context:
space:
mode:
authorAbleytner <56540036+Ableytner@users.noreply.github.com>2024-11-23 07:57:42 +0100
committerGitHub <noreply@github.com>2024-11-23 07:57:42 +0100
commitc7cb999dfb09b3b6c04d1eb13e30120ee7c7b76e (patch)
treebf15af12ed680330537bcdfe60a883248fd2a1e7 /src/main/java/gregtech/common
parente69032e4cddc7ff4dd71a85d3564013ac5abbe41 (diff)
downloadGT5-Unofficial-c7cb999dfb09b3b6c04d1eb13e30120ee7c7b76e.tar.gz
GT5-Unofficial-c7cb999dfb09b3b6c04d1eb13e30120ee7c7b76e.tar.bz2
GT5-Unofficial-c7cb999dfb09b3b6c04d1eb13e30120ee7c7b76e.zip
Fix NEI preview for Implosion Compressor and Density^2 (#3522)
Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: Mary <33456283+FourIsTheNumber@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/MTEImplosionCompressor.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEImplosionCompressor.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEImplosionCompressor.java
index 742ff79ff6..6a264133c0 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEImplosionCompressor.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEImplosionCompressor.java
@@ -2,14 +2,22 @@ package gregtech.common.tileentities.machines.multi;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain;
+import static gregtech.api.enums.HatchElement.Energy;
+import static gregtech.api.enums.HatchElement.InputBus;
+import static gregtech.api.enums.HatchElement.Maintenance;
+import static gregtech.api.enums.HatchElement.Muffler;
+import static gregtech.api.enums.HatchElement.OutputBus;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE_GLOW;
import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_GLOW;
+import java.util.List;
+
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.ForgeDirection;
+import com.google.common.collect.ImmutableList;
import com.gtnewhorizon.structurelib.structure.IStructureElement;
import gregtech.GTMod;
@@ -17,6 +25,7 @@ import gregtech.api.GregTechAPI;
import gregtech.api.enums.SoundResource;
import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.IHatchElement;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
@@ -124,6 +133,11 @@ public class MTEImplosionCompressor extends MTECubicMultiBlockBase<MTEImplosionC
}
@Override
+ protected List<IHatchElement<? super MTECubicMultiBlockBase<?>>> getAllowedHatches() {
+ return ImmutableList.of(InputBus, OutputBus, Maintenance, Energy, Muffler);
+ }
+
+ @Override
protected int getHatchTextureIndex() {
return 16;
}