Add getSlotLimit(slot) to IItemHandler (#3445)

This commit is contained in:
Vincent Lee authored and LexManos committed 2016-11-28 16:03:47 -08:00
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);
}