public abstract class BukkitLockableEvent extends BukkitCancellableEvent implements LockableEvent
Modifier | Constructor and Description |
---|---|
protected |
BukkitLockableEvent() |
Modifier and Type | Method and Description |
---|---|
boolean |
callEvt() |
int |
count()
Returns the lock counter.
|
protected abstract BukkitLockableNewActionEvent<?> |
createNewActionEvent(org.bukkit.plugin.Plugin owner,
LockableEventAction action) |
byte |
getLock()
Deprecated.
|
protected abstract void |
internalCall(int id) |
void |
lock(org.bukkit.plugin.Plugin owner)
Locks the event.
|
void |
unlock(org.bukkit.plugin.Plugin owner)
Unlocks the event.
|
isCancelled, setCancelled
getHandlerList, getHandlers
protected abstract BukkitLockableNewActionEvent<?> createNewActionEvent(org.bukkit.plugin.Plugin owner, LockableEventAction action)
protected abstract void internalCall(int id)
public void lock(@Nonnull org.bukkit.plugin.Plugin owner)
owner
- the plugin responsible for this action.public void unlock(@Nonnull org.bukkit.plugin.Plugin owner)
owner
- the plugin responsible for this action.public int count()
@Deprecated public byte getLock()
public boolean callEvt()
callEvt
in interface LockableEvent