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.InventoryComponentConfiguration config  

    Fields inherited from class com.zachsthings.libcomponents.bukkit.BukkitComponent

    commands
  • Constructor Summary

    Constructors 
    Constructor Description
    InventoryComponent()  
  • Method Summary

    Modifier and Type Method Description
    void checkAllowedItem​(org.bukkit.command.CommandSender sender, com.sk89q.worldedit.blocks.BaseItem itemStack)
    Checks to see if a user can use an item.
    void enable()  
    protected com.sk89q.commandbook.component.inventory.InventoryComponentConfiguration getConfig()  
    void reload()  

    Methods inherited from class com.zachsthings.libcomponents.bukkit.BukkitComponent

    disable, getCommands, onCommand, registerCommands, setUp, unregisterCommands

    Methods inherited from class com.zachsthings.libcomponents.AbstractComponent

    configure, getComponentLoader, getInformation, getRawConfiguration, isEnabled, saveConfig, saveConfig, setUp

    Methods inherited from class java.lang.Object

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

    • config

      protected com.sk89q.commandbook.component.inventory.InventoryComponentConfiguration config
  • Constructor Details

  • Method Details

    • enable

      public void enable()
      Specified by:
      enable in class com.zachsthings.libcomponents.AbstractComponent
    • reload

      public void reload()
      Overrides:
      reload in class com.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.CommandException
      Checks to see if a user can use an item.
      Parameters:
      sender -
      itemStack -
      Throws:
      com.sk89q.minecraft.util.commands.CommandException