Class Inventories

java.lang.Object
com.earth2me.essentials.craftbukkit.Inventories

public final class Inventories extends Object
  • Method Details

    • getItemInHand

      public static ItemStack getItemInHand(Player player)
    • getItemInMainHand

      public static ItemStack getItemInMainHand(Player player)
    • setItemInMainHand

      public static void setItemInMainHand(Player player, ItemStack stack)
    • setItemInMainHand

      public static void setItemInMainHand(EntityEquipment entityEquipment, ItemStack stack)
    • setItemInMainHandDropChance

      public static void setItemInMainHandDropChance(EntityEquipment entityEquipment, float chance)
    • containsAtLeast

      public static boolean containsAtLeast(Player player, ItemStack item, int amount)
    • hasSpace

      public static boolean hasSpace(Player player, int maxStack, boolean includeArmor, ItemStack... items)
    • addItem

      public static Map<Integer,ItemStack> addItem(Player player, ItemStack... items)
    • addItem

      public static Map<Integer,ItemStack> addItem(Player player, int maxStack, ItemStack... items)
    • addItem

      public static Map<Integer,ItemStack> addItem(Player player, int maxStack, boolean allowArmor, ItemStack... items)
    • getInventory

      public static ItemStack[] getInventory(Player player, boolean includeArmor)
    • removeItemExact

      public static void removeItemExact(Player player, ItemStack toRemove, boolean includeArmor)
    • removeItemSimilar

      public static int removeItemSimilar(Player player, ItemStack toRemove, boolean includeArmor)
    • removeItems

      public static int removeItems(Player player, Predicate<ItemStack> removePredicate, boolean includeArmor)
    • removeItemAmount

      public static boolean removeItemAmount(Player player, ItemStack toRemove, int amount)
    • clearSlot

      public static void clearSlot(Player player, int slot)
    • setSlot

      public static void setSlot(Player inventory, int slot, ItemStack item)