aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2023-07-27 04:19:51 +0900
committerGitHub <noreply@github.com>2023-07-26 21:19:51 +0200
commitea1c6f981ef6d01cd7dd42937283e140be08a144 (patch)
tree195970b7ec73e3c5bc2854da7f3f9a8957f9b22c /src/main/java/gregtech/api
parent093bfa0dc02bc330b1ed79704832152917c3d6f8 (diff)
downloadGT5-Unofficial-ea1c6f981ef6d01cd7dd42937283e140be08a144.tar.gz
GT5-Unofficial-ea1c6f981ef6d01cd7dd42937283e140be08a144.tar.bz2
GT5-Unofficial-ea1c6f981ef6d01cd7dd42937283e140be08a144.zip
Allow using ME output hatches for fusion reactor (#2184)
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r--src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_Hatch.java10
1 files changed, 10 insertions, 0 deletions
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
@@ -135,6 +135,16 @@ public abstract class GT_MetaTileEntity_Hatch extends GT_MetaTileEntity_BasicTan
}
/**
+ * 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
*
* @param page page of texure