public abstract class BungeeLockableEvent extends BungeeCancellableEvent implements LockableEvent
Modifier | Constructor and Description |
---|---|
protected |
BungeeLockableEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
callEvt() |
int |
count()
Returns the lock counter.
|
protected abstract BungeeLockableNewActionEvent<?> |
createNewActionEvent(net.md_5.bungee.api.plugin.Plugin owner,
LockableEventAction action) |
byte |
getLock()
Deprecated.
|
protected abstract void |
internalCall(int id) |
void |
lock(net.md_5.bungee.api.plugin.Plugin owner)
Locks the event.
|
protected void |
tryFinish() |
void |
unlock(net.md_5.bungee.api.plugin.Plugin owner)
Unlocks the event.
|
isCancelled, setCancelled
protected abstract BungeeLockableNewActionEvent<?> createNewActionEvent(net.md_5.bungee.api.plugin.Plugin owner, LockableEventAction action)
protected abstract void internalCall(int id)
public void lock(@Nonnull net.md_5.bungee.api.plugin.Plugin owner)
owner
- the plugin responsible for this action.public void unlock(@Nonnull net.md_5.bungee.api.plugin.Plugin 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()