Class CancelInteractionHandler

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

public class CancelInteractionHandler extends InteractionHandler
InteractionHandler for cancelling GUI interaction
  • Constructor Details

    • CancelInteractionHandler

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

    • onClick

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

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