diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-08-10 07:47:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 01:47:17 +0200 |
commit | 39a672b7c4b7b9033d4577c6dae1d4ea0a414ee3 (patch) | |
tree | a3d7e190df1dfd5d7a108c648565f992713d5c4c /src/main/java/gregtech/api/util/GT_StructureUtility.java | |
parent | f10e6a783fca67c30d25017b6482fa910ee88bcb (diff) | |
download | GT5-Unofficial-39a672b7c4b7b9033d4577c6dae1d4ea0a414ee3.tar.gz GT5-Unofficial-39a672b7c4b7b9033d4577c6dae1d4ea0a414ee3.tar.bz2 GT5-Unofficial-39a672b7c4b7b9033d4577c6dae1d4ea0a414ee3.zip |
loosen the generic restrictions on hatch elements (#1236)
It honestly never occurred to me that SOMEONE would not derive from GT_MetaTileEntity_EnhancedMultiblockBase
Diffstat (limited to 'src/main/java/gregtech/api/util/GT_StructureUtility.java')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_StructureUtility.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/util/GT_StructureUtility.java b/src/main/java/gregtech/api/util/GT_StructureUtility.java index 7938214319..dc3112621e 100644 --- a/src/main/java/gregtech/api/util/GT_StructureUtility.java +++ b/src/main/java/gregtech/api/util/GT_StructureUtility.java @@ -16,6 +16,7 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.BaseMetaPipeEntity; import gregtech.api.metatileentity.implementations.GT_MetaPipeEntity_Frame; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_EnhancedMultiBlockBase; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_TieredMachineBlock; import gregtech.common.blocks.GT_Block_Casings5; import gregtech.common.blocks.GT_Item_Machines; @@ -98,14 +99,14 @@ public class GT_StructureUtility { }; } - public static <T extends GT_MetaTileEntity_EnhancedMultiBlockBase<?>> GT_HatchElementBuilder<T> buildHatchAdder() { + public static <T> GT_HatchElementBuilder<T> buildHatchAdder() { return GT_HatchElementBuilder.builder(); } /** * Completely equivalent to {@link #buildHatchAdder()}, except it plays nicer with type inference when statically imported */ - public static <T extends GT_MetaTileEntity_EnhancedMultiBlockBase<?>> GT_HatchElementBuilder<T> buildHatchAdder(Class<T> typeToken) { + public static <T> GT_HatchElementBuilder<T> buildHatchAdder(Class<T> typeToken) { return GT_HatchElementBuilder.builder(); } |