Class InventoryUtil

java.lang.Object
com.sk89q.commandbook.util.item.InventoryUtil

public class InventoryUtil
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    InventoryUtil()  
  • Method Summary

    Modifier and Type Method Description
    static void giveItem​(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem item, int amt, java.lang.Iterable<org.bukkit.entity.Player> targets, InventoryComponent component, boolean drop, boolean overrideStackSize)
    Process an item give request.
    static void takeItem​(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem item, int amt, org.bukkit.entity.Player target)
    Process an item give request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • giveItem

      public static void giveItem​(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem item, int amt, java.lang.Iterable<org.bukkit.entity.Player> targets, InventoryComponent component, boolean drop, boolean overrideStackSize) throws com.sk89q.minecraft.util.commands.CommandException
      Process an item give request.
      Parameters:
      sender -
      item -
      amt -
      targets -
      component -
      drop -
      Throws:
      com.sk89q.minecraft.util.commands.CommandException
    • takeItem

      public static void takeItem​(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem item, int amt, org.bukkit.entity.Player target) throws com.sk89q.minecraft.util.commands.CommandException
      Process an item give request.
      Parameters:
      sender -
      item -
      amt -
      target -
      Throws:
      com.sk89q.minecraft.util.commands.CommandException