Class ButtonClickHandler

java.lang.Object
de.placeblock.betterinventories.interaction.InteractionHandler
de.placeblock.betterinventories.interaction.impl.ButtonClickHandler

public class ButtonClickHandler extends InteractionHandler
InteractionHandler for handling Button clicks
  • Field Summary

    Fields inherited from class de.placeblock.betterinventories.interaction.InteractionHandler

    gui
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new ButtonClickHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onClick(org.bukkit.event.inventory.InventoryClickEvent event)
    Called on inventory-click
    boolean
    onDrag(org.bukkit.event.inventory.InventoryDragEvent event)
    Called on inventory-drag

    Methods inherited from class java.lang.Object

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

    • ButtonClickHandler

      public ButtonClickHandler(GUI gui)
      Creates a new ButtonClickHandler
      Parameters:
      gui - The according GUI
  • Method Details

    • onClick

      public boolean onClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Called on inventory-click
      Specified by:
      onClick in class InteractionHandler
      Parameters:
      event - The Event
      Returns:
      true if handler-calling should stop
    • onDrag

      public boolean onDrag(org.bukkit.event.inventory.InventoryDragEvent event)
      Called on inventory-drag
      Specified by:
      onDrag in class InteractionHandler
      Parameters:
      event - The Event
      Returns:
      true if handler-calling should stop