Class BungeeLockableEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
All Implemented Interfaces:
CancellableEvent, LockableEvent, net.md_5.bungee.api.plugin.Cancellable
Direct Known Subclasses:
LoginRequestEvent

public abstract class BungeeLockableEvent extends BungeeCancellableEvent implements LockableEvent
  • Constructor Details

    • BungeeLockableEvent

      protected BungeeLockableEvent()
  • Method Details

    • createNewActionEvent

      protected abstract BungeeLockableNewActionEvent<?> createNewActionEvent(net.md_5.bungee.api.plugin.Plugin owner, LockableEventAction action)
    • internalCall

      protected abstract void internalCall(int id)
    • lock

      public void lock(@Nonnull net.md_5.bungee.api.plugin.Plugin owner)
      Locks the event.
      Parameters:
      owner - the plugin responsible for this action.
    • unlock

      public void unlock(@Nonnull net.md_5.bungee.api.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
    • tryFinish

      protected void tryFinish()