Class MinestomClickEvent

java.lang.Object
me.hsgamer.hscore.minestom.gui.event.MinestomEvent<net.minestom.server.event.inventory.InventoryPreClickEvent>
me.hsgamer.hscore.minestom.gui.event.MinestomClickEvent
All Implemented Interfaces:
CancellableEvent, ClickEvent, ViewerEvent, MinestomCancellableEvent, MinestomViewerEvent

public class MinestomClickEvent extends MinestomEvent<net.minestom.server.event.inventory.InventoryPreClickEvent> implements ClickEvent, MinestomCancellableEvent, MinestomViewerEvent
The click event for Minestom
  • Constructor Details

    • MinestomClickEvent

      public MinestomClickEvent(net.minestom.server.event.inventory.InventoryPreClickEvent event)
      Create a new event
      Parameters:
      event - the Minestom event
  • Method Details

    • getSlot

      public int getSlot()
      Description copied from interface: ClickEvent
      Get the slot
      Specified by:
      getSlot in interface ClickEvent
      Returns:
      the slot
    • isButtonExecute

      public boolean isButtonExecute()
      Description copied from interface: ClickEvent
      Check if the buttons can be executed
      Specified by:
      isButtonExecute in interface ClickEvent
      Returns:
      true if the buttons can be executed
    • setButtonExecute

      public void setButtonExecute(boolean buttonExecute)
      Description copied from interface: ClickEvent
      Set if the buttons can be executed
      Specified by:
      setButtonExecute in interface ClickEvent
      Parameters:
      buttonExecute - true if the buttons can be executed