Package com.sk89q.commandbook.util.item
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 voidgiveItem(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 voidtakeItem(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem item, int amt, org.bukkit.entity.Player target)Process an item give request.
-
Constructor Details
-
InventoryUtil
public InventoryUtil()
-
-
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.CommandExceptionProcess 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.CommandExceptionProcess an item give request.- Parameters:
sender-item-amt-target-- Throws:
com.sk89q.minecraft.util.commands.CommandException
-