Class InventoryComponent
java.lang.Object
com.zachsthings.libcomponents.AbstractComponent
com.zachsthings.libcomponents.bukkit.BukkitComponent
com.sk89q.commandbook.component.inventory.InventoryComponent
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
public class InventoryComponent
extends com.zachsthings.libcomponents.bukkit.BukkitComponent
-
Field Summary
Fields Modifier and Type Field Description protected com.sk89q.commandbook.component.inventory.InventoryComponentConfigurationconfig -
Constructor Summary
Constructors Constructor Description InventoryComponent() -
Method Summary
Modifier and Type Method Description voidcheckAllowedItem(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem itemStack)Checks to see if a user can use an item.voidenable()protected com.sk89q.commandbook.component.inventory.InventoryComponentConfigurationgetConfig()voidreload()Methods inherited from class com.zachsthings.libcomponents.bukkit.BukkitComponent
disable, getCommands, onCommand, registerCommands, setUp, unregisterCommands
-
Field Details
-
config
protected com.sk89q.commandbook.component.inventory.InventoryComponentConfiguration config
-
-
Constructor Details
-
InventoryComponent
public InventoryComponent()
-
-
Method Details
-
enable
public void enable()- Specified by:
enablein classcom.zachsthings.libcomponents.AbstractComponent
-
reload
public void reload()- Overrides:
reloadin classcom.zachsthings.libcomponents.AbstractComponent
-
getConfig
protected com.sk89q.commandbook.component.inventory.InventoryComponentConfiguration getConfig() -
checkAllowedItem
public void checkAllowedItem(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem itemStack) throws com.sk89q.minecraft.util.commands.CommandExceptionChecks to see if a user can use an item.- Parameters:
sender-itemStack-- Throws:
com.sk89q.minecraft.util.commands.CommandException
-