aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
diff options
context:
space:
mode:
authorMaxim <maxim235@gmx.de>2023-04-08 22:40:29 +0200
committerGitHub <noreply@github.com>2023-04-08 22:40:29 +0200
commit32d081720f26036f05559d4124ed0a51377c1f6f (patch)
tree344dd6567b393ee33acf3387ab918f20986e90ec /src/main/java/gregtech/api
parent375a1d52ef89cbbefd85dc21750025a48d091bce (diff)
downloadGT5-Unofficial-32d081720f26036f05559d4124ed0a51377c1f6f.tar.gz
GT5-Unofficial-32d081720f26036f05559d4124ed0a51377c1f6f.tar.bz2
GT5-Unofficial-32d081720f26036f05559d4124ed0a51377c1f6f.zip
Added method to add instance specific information to an MTE tooltip (#1857)
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r--src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java8
1 files changed, 8 insertions, 0 deletions
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<String> tooltip) {}
}