Class VelocityLockableEvent

java.lang.Object
com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
com.nickuc.login.api.event.internal.velocity.VelocityLockableEvent
All Implemented Interfaces:
CancellableEvent, LockableEvent
Direct Known Subclasses:
LoginRequestEvent

public abstract class VelocityLockableEvent extends VelocityCancellableEvent implements LockableEvent
  • Constructor Details

    • VelocityLockableEvent

      protected VelocityLockableEvent()
  • Method Details

    • createNewActionEvent

      protected abstract VelocityLockableNewActionEvent<?> createNewActionEvent(Object owner, LockableEventAction action)
    • internalCall

      protected abstract void internalCall(int id)
    • lock

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

      public void unlock(@Nonnull Object 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()