Class MenuOpenEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.feature.gui.api.event.MenuEvent
net.okocraft.box.feature.gui.api.event.MenuOpenEvent
- All Implemented Interfaces:
Cancellable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets if the event has been cancelled.void
setCancelled
(boolean cancel) Sets the cancel status of the event.@NotNull String
Creates 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:Cancellable
Gets if the event has been cancelled.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
true
if canceled,false
otherwise.
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:Cancellable
Sets the cancel status of the event.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
-true
to cancel,false
to not.
-
toDebugLog
Description copied from class:BoxEvent
Creates the debug log from this event.- Overrides:
toDebugLog
in classBoxEvent
- Returns:
- the debug log
-
toString
-