From e30abbb03c2af80a00d2036808d3125c58331b19 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Mon, 2 Jan 2023 16:22:37 +0800 Subject: add callhook for pre block destroy (#1625) * add callhook for pre block destroy Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * spotless Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> --- .../java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/gregtech/api/interfaces/tileentity') diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java index b389c8be6c..16fbe4f327 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java @@ -140,6 +140,8 @@ public interface IGregTechTileEntity float getBlastResistance(byte aSide); + default void onBlockDestroyed() {} + ArrayList getDrops(); /** Check if the item at the specific index should be dropped or not -- cgit