aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity
diff options
context:
space:
mode:
authorMaxim <maxim235@gmx.de>2022-10-22 11:38:49 +0200
committerGitHub <noreply@github.com>2022-10-22 11:38:49 +0200
commit4f72e6dd87a68fc9d93c3fe6cf6a38723e2566ed (patch)
treeeb59e6beb30dc58c50398f3c598d1b9614bb5f7b /src/main/java/gregtech/api/interfaces/tileentity
parente9ecca3f1aba7ef7ea5eaaea8b0baf8d1e7659c8 (diff)
downloadGT5-Unofficial-4f72e6dd87a68fc9d93c3fe6cf6a38723e2566ed.tar.gz
GT5-Unofficial-4f72e6dd87a68fc9d93c3fe6cf6a38723e2566ed.tar.bz2
GT5-Unofficial-4f72e6dd87a68fc9d93c3fe6cf6a38723e2566ed.zip
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
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/tileentity')
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IGregTechTileEntity.java7
1 files changed, 7 insertions, 0 deletions
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<ItemStack> 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%
*/