From 228a726aaed50cd35346ed65369f1c1fddd2cd26 Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Fri, 5 May 2023 19:06:25 +0100 Subject: Display multiblock name&icon in AE2 interface terminal and crafting tree view instead of the hatch (#1944) * Update buildscript * Apply spotless * Update ae2 and other dependencies * Display multiblock name&icon in AE2 interface terminal and crafting tree view instead of the hatch * Remove no longer needed Avaritia dep --------- Co-authored-by: Martin Robertz --- .../gregtech/api/interfaces/metatileentity/IMetaTileEntity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java') diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java index c9377d10be..fed9501067 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java @@ -22,6 +22,7 @@ import net.minecraftforge.fluids.IFluidTank; import com.gtnewhorizons.modularui.api.forge.ItemStackHandler; +import appeng.api.crafting.ICraftingIconProvider; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import gregtech.api.enums.Dyes; @@ -43,7 +44,7 @@ import gregtech.common.power.Power; * Don't implement this yourself and expect it to work. Extend @MetaTileEntity itself. */ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHandler, IGearEnergyTileEntity, - IMachineBlockUpdateable, IGregtechWailaProvider, IGetGUITextureSet { + IMachineBlockUpdateable, IGregtechWailaProvider, IGetGUITextureSet, ICraftingIconProvider { /** * This determines the BaseMetaTileEntity belonging to this MetaTileEntity by using the Meta ID of the Block itself. @@ -519,4 +520,9 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand * @param tooltip Tooltip to which can be added */ default void addAdditionalTooltipInformation(ItemStack stack, List tooltip) {} + + @Override + default ItemStack getMachineCraftingIcon() { + return null; + } } -- cgit