From 4f72e6dd87a68fc9d93c3fe6cf6a38723e2566ed Mon Sep 17 00:00:00 2001 From: Maxim Date: Sat, 22 Oct 2022 11:38:49 +0200 Subject: Added check to API if the block should drop its inventory on break (#1479) * Added check to API if the block should drop its inventory on break * Apply spotless * Changed should drop flag to take index argument --- .../gregtech/api/interfaces/tileentity/IGregTechTileEntity.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java') diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java index 253deae29b..ad2af44e9e 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java @@ -138,6 +138,13 @@ public interface IGregTechTileEntity ArrayList getDrops(); + /** Check if the item at the specific index should be dropped or not + * + * @param index Index that will be checked + * @return True if it should drop, else false + */ + boolean shouldDropItemAt(int index); + /** * 255 = 100% */ -- cgit