Class BukkitLockableEvent

All Implemented Interfaces:
CancellableEvent, LockableEvent, org.bukkit.event.Cancellable
Direct Known Subclasses:
LoginRequestEvent

public abstract class BukkitLockableEvent extends BukkitCancellableEvent implements LockableEvent
  • Constructor Details

    • BukkitLockableEvent

      protected BukkitLockableEvent()
  • Method Details

    • createNewActionEvent

      protected abstract BukkitLockableNewActionEvent<?> createNewActionEvent(org.bukkit.plugin.Plugin owner, LockableEventAction action)
    • internalCall

      protected abstract void internalCall(int id)
    • lock

      public void lock(@Nonnull org.bukkit.plugin.Plugin owner)
      Locks the event.
      Parameters:
      owner - the plugin responsible for this action.
    • unlock

      public void unlock(@Nonnull org.bukkit.plugin.Plugin owner)
      Unlocks the event.
      Parameters:
      owner - the plugin responsible for this action.
    • count

      public int count()
      Returns the lock counter.
    • getLock

      @Deprecated public byte getLock()
      Deprecated.
    • callEvt

      public boolean callEvt()
      Specified by:
      callEvt in interface LockableEvent