From ea1c6f981ef6d01cd7dd42937283e140be08a144 Mon Sep 17 00:00:00 2001 From: miozune Date: Thu, 27 Jul 2023 04:19:51 +0900 Subject: Allow using ME output hatches for fusion reactor (#2184) --- .../implementations/GT_MetaTileEntity_Hatch.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/gregtech/api') diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java index 6da0331131..1e974f5e9d 100644 --- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java +++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java @@ -134,6 +134,16 @@ public abstract class GT_MetaTileEntity_Hatch extends GT_MetaTileEntity_BasicTan return this.ae2CraftingIcon; } + /** + * Some multiblocks restrict hatches by tier. This method allows hatches to specify custom tier used for + * structure check, while keeping {@link #mTier} for other uses. + * + * @return Tier used for multiblock structure + */ + public byte getTierForStructure() { + return mTier; + } + /** * Sets texture with page and index, rather unusable, but kept FFS * -- cgit