Class Inventories
java.lang.Object
com.earth2me.essentials.craftbukkit.Inventories
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static boolean
containsAtLeast
(Player player, ItemStack item, int amount) static ItemStack[]
getInventory
(Player player, boolean includeArmor) static ItemStack
getItemInHand
(Player player) static ItemStack
getItemInMainHand
(Player player) static boolean
static boolean
removeItemAmount
(Player player, ItemStack toRemove, int amount) static void
removeItemExact
(Player player, ItemStack toRemove, boolean includeArmor) static int
removeItems
(Player player, Predicate<ItemStack> removePredicate, boolean includeArmor) static int
removeItemSimilar
(Player player, ItemStack toRemove, boolean includeArmor) static void
setItemInMainHand
(Player player, ItemStack stack) static void
setItemInMainHand
(EntityEquipment entityEquipment, ItemStack stack) static void
setItemInMainHandDropChance
(EntityEquipment entityEquipment, float chance) static void
-
Method Details
-
getItemInHand
-
getItemInMainHand
-
setItemInMainHand
-
setItemInMainHand
-
setItemInMainHandDropChance
-
containsAtLeast
-
hasSpace
-
addItem
-
addItem
-
addItem
-
getInventory
-
removeItemExact
-
removeItemSimilar
-
removeItems
-
removeItemAmount
-
clearSlot
-
setSlot
-