From 32d081720f26036f05559d4124ed0a51377c1f6f Mon Sep 17 00:00:00 2001 From: Maxim Date: Sat, 8 Apr 2023 22:40:29 +0200 Subject: Added method to add instance specific information to an MTE tooltip (#1857) --- .../gregtech/api/interfaces/metatileentity/IMetaTileEntity.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/gregtech/api/interfaces/metatileentity') diff --git a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java index 849b82565e..67dc9927cd 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java @@ -513,4 +513,12 @@ public interface IMetaTileEntity extends ISidedInventory, IFluidTank, IFluidHand * Called before block is destroyed. This is before inventory dropping code has executed. */ default void onBlockDestroyed() {} + + /** + * Allows to add additional data to the tooltip, which is specific to an instance of the machine + * + * @param stack Item stack of this MTE + * @param tooltip Tooltip to which can be added + */ + default void addAdditionalTooltipInformation(ItemStack stack, List tooltip) {} } -- cgit