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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancallEvt()intcount()Returns the lock counter.protected abstract VelocityLockableNewActionEvent<?> createNewActionEvent(Object owner, LockableEventAction action) bytegetLock()Deprecated.protected abstract voidinternalCall(int id) voidLocks the event.protected voidvoidUnlocks the event.Methods inherited from class com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
isCancelled, setCancelled
-
Constructor Details
-
VelocityLockableEvent
protected VelocityLockableEvent()
-
-
Method Details
-
createNewActionEvent
protected abstract VelocityLockableNewActionEvent<?> createNewActionEvent(Object owner, LockableEventAction action) -
internalCall
protected abstract void internalCall(int id) -
lock
Locks the event.- Parameters:
owner- the plugin responsible for this action.
-
unlock
Unlocks the event.- Parameters:
owner- the plugin responsible for this action.
-
count
public int count()Returns the lock counter. -
getLock
Deprecated. -
callEvt
public boolean callEvt()- Specified by:
callEvtin interfaceLockableEvent
-
tryFinish
protected void tryFinish()
-