|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quartercode.quarterbukkit.api.InventoryUtil
public class InventoryUtil
Class for handling several Inventory
-related processes easier.
Method Summary | |
---|---|
static boolean |
contains(org.bukkit.inventory.Inventory inventory,
org.bukkit.inventory.ItemStack itemStack)
Returns if the given Inventory contains at least one ItemStack which equals the given ItemStack . |
static boolean |
containsAtLeast(org.bukkit.inventory.Inventory inventory,
org.bukkit.inventory.ItemStack itemStack,
int minimumAmount)
Returns if the given Inventory contains at least the given amount of ItemStack s which equal the given ItemStack . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean contains(org.bukkit.inventory.Inventory inventory, org.bukkit.inventory.ItemStack itemStack)
Inventory
contains at least one ItemStack
which equals the given ItemStack
.
inventory
- The Inventory
to check.itemStack
- The ItemStack
to check.
Inventory
contains at least one ItemStack
which equals the given ItemStack
.public static boolean containsAtLeast(org.bukkit.inventory.Inventory inventory, org.bukkit.inventory.ItemStack itemStack, int minimumAmount)
Inventory
contains at least the given amount of ItemStack
s which equal the given ItemStack
.
inventory
- The Inventory
to check.itemStack
- The ItemStack
to check.
Inventory
contains at least the given amount of ItemStack
s which equal the given ItemStack
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |