mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Add getSlotLimit(slot) to IItemHandler (#3445)
This commit is contained in:
1 parent
b048c1a4b5
commit
c17b40790b
9 files changed
+99
-5
No files matched your search
@@ -80,4 +80,12 @@ public interface IItemHandler
|
||||
**/
|
||||
@Nonnull
|
||||
ItemStack extractItem(int slot, int amount, boolean simulate);
|
||||
|
||||
/**
|
||||
* Retrieves the maximum stack size allowed to exist in the given slot.
|
||||
*
|
||||
* @param slot Slot to query.
|
||||
* @return The maximum stack size allowed in the slot.
|
||||
*/
|
||||
int getSlotLimit(int slot);
|
||||
}
|
||||
Reference in new issue
Block a user