Class MenuOpenEvent

All Implemented Interfaces:
Cancellable

public class MenuOpenEvent extends MenuEvent implements Cancellable
  • Constructor Details

    • MenuOpenEvent

      public MenuOpenEvent(@NotNull @NotNull Menu menu, @NotNull @NotNull PlayerSession session)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Gets if the event has been cancelled.
      Specified by:
      isCancelled in interface Cancellable
      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 interface Cancellable
      Parameters:
      cancel - true to cancel, false to not.
    • toDebugLog

      @NotNull public @NotNull String toDebugLog()
      Description copied from class: BoxEvent
      Creates the debug log from this event.
      Overrides:
      toDebugLog in class BoxEvent
      Returns:
      the debug log
    • toString

      public String toString()
      Overrides:
      toString in class Object