public abstract class VelocityLockableEvent extends VelocityCancellableEvent implements LockableEvent
Modifier | Constructor and Description |
---|---|
protected |
VelocityLockableEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
callEvt() |
int |
count()
Returns the lock counter.
|
protected abstract VelocityLockableNewActionEvent<?> |
createNewActionEvent(java.lang.Object owner,
LockableEventAction action) |
byte |
getLock()
Deprecated.
|
protected abstract void |
internalCall(int id) |
void |
lock(java.lang.Object owner)
Locks the event.
|
protected void |
tryFinish() |
void |
unlock(java.lang.Object owner)
Unlocks the event.
|
isCancelled, setCancelled
protected abstract VelocityLockableNewActionEvent<?> createNewActionEvent(java.lang.Object owner, LockableEventAction action)
protected abstract void internalCall(int id)
public void lock(@Nonnull java.lang.Object owner)
owner
- the plugin responsible for this action.public void unlock(@Nonnull java.lang.Object owner)
owner
- the plugin responsible for this action.public int count()
@Deprecated public byte getLock()
public boolean callEvt()
callEvt
in interface LockableEvent
protected void tryFinish()