Class LockDeletedEvent

java.lang.Object
org.bukkit.event.Event
me.fami6xx.rpuniverse.core.api.LockDeletedEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class LockDeletedEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event that is called when a lock is deleted.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new LockDeletedEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Gets the static handler list for this event.
    @NotNull org.bukkit.event.HandlerList
    Gets the list of handlers for this event.
    Gets the lock that was deleted.
    boolean
    Checks if the event is cancelled.
    void
    setCancelled​(boolean b)
    Sets the cancellation state of the event.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LockDeletedEvent

      public LockDeletedEvent(Lock lock)
      Constructs a new LockDeletedEvent.
      Parameters:
      lock - the lock that was deleted
  • Method Details

    • getLock

      public Lock getLock()
      Gets the lock that was deleted.
      Returns:
      the deleted lock
    • isCancelled

      public boolean isCancelled()
      Checks if the event is cancelled.
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      true if the event is cancelled, false otherwise
    • setCancelled

      public void setCancelled(boolean b)
      Sets the cancellation state of the event.
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Parameters:
      b - true to cancel the event, false to not cancel the event
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Gets the list of handlers for this event.
      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      the list of handlers
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the static handler list for this event.
      Returns:
      the static handler list