Class MenuClickEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.feature.gui.api.event.MenuEvent
net.okocraft.box.feature.gui.api.event.MenuClickEvent
- All Implemented Interfaces:
Cancellable
-
Constructor Summary
ConstructorsConstructorDescriptionMenuClickEvent(@NotNull Menu menu, @NotNull PlayerSession session, @NotNull Button clickedButton, @NotNull ClickType clickType) -
Method Summary
Modifier and TypeMethodDescription@NotNull Button@NotNull ClickTypebooleanGets if the event has been cancelled.voidsetCancelled(boolean cancel) Sets the cancel status of the event.@NotNull StringCreates the debug log from this event.toString()Methods inherited from class net.okocraft.box.feature.gui.api.event.MenuEvent
getMenu, getSession, getViewer
-
Constructor Details
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableGets if the event has been cancelled.- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif canceled,falseotherwise.
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancel status of the event.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel,falseto not.
-
getClickedButton
-
getClickType
-
toDebugLog
Description copied from class:BoxEventCreates the debug log from this event.- Overrides:
toDebugLogin classBoxEvent- Returns:
- the debug log
-
toString
-