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
-
Field Summary
Fields inherited from class me.hsgamer.hscore.minestom.gui.event.MinestomEvent
event
-
Constructor Summary
ConstructorDescriptionMinestomClickEvent
(net.minestom.server.event.inventory.InventoryPreClickEvent event) Create a new event -
Method Summary
Modifier and TypeMethodDescriptionint
getSlot()
Get the slotboolean
Check if the buttons can be executedvoid
setButtonExecute
(boolean buttonExecute) Set if the buttons can be executedMethods inherited from class me.hsgamer.hscore.minestom.gui.event.MinestomEvent
getEvent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.hscore.minestom.gui.event.MinestomCancellableEvent
getEvent, isCancelled, setCancelled
Methods inherited from interface me.hsgamer.hscore.minestom.gui.event.MinestomViewerEvent
getEvent, getViewerID
-
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 interfaceClickEvent
- Returns:
- the slot
-
isButtonExecute
public boolean isButtonExecute()Description copied from interface:ClickEvent
Check if the buttons can be executed- Specified by:
isButtonExecute
in interfaceClickEvent
- 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 interfaceClickEvent
- Parameters:
buttonExecute
- true if the buttons can be executed
-