diff options
author | Maxim <maxim235@gmx.de> | 2022-10-22 11:38:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 11:38:49 +0200 |
commit | 4f72e6dd87a68fc9d93c3fe6cf6a38723e2566ed (patch) | |
tree | eb59e6beb30dc58c50398f3c598d1b9614bb5f7b /src/main/java/gregtech/api/interfaces/metatileentity | |
parent | e9ecca3f1aba7ef7ea5eaaea8b0baf8d1e7659c8 (diff) | |
download | GT5-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/metatileentity')
-rw-r--r-- | src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java | 7 |
1 files changed, 7 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 c9d23e1f71..29b0a56a89 100644 --- a/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java +++ b/src/main/java/gregtech/api/interfaces/metatileentity/IMetaTileEntity.java @@ -216,6 +216,13 @@ public interface IMetaTileEntity */ boolean isValidSlot(int aIndex); + /** Check if the item at the specified index should be dropped + * + * @param index Index that will be checked + * @return True if the item at the index should be dropped, else false + */ + boolean shouldDropItemAt(int index); + /** * @return if aIndex can be set to Zero stackSize, when being removed. */ |