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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
callEvt()
int
count()
Returns the lock counter.protected abstract VelocityLockableNewActionEvent<?>
createNewActionEvent
(Object owner, LockableEventAction action) byte
getLock()
Deprecated.protected abstract void
internalCall
(int id) void
Locks the event.protected void
void
Unlocks 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:
callEvt
in interfaceLockableEvent
-
tryFinish
protected void tryFinish()
-