Class BukkitLockableEvent
java.lang.Object
org.bukkit.event.Event
com.nickuc.login.api.event.internal.bukkit.BukkitEvent
com.nickuc.login.api.event.internal.bukkit.BukkitCancellableEvent
com.nickuc.login.api.event.internal.bukkit.BukkitLockableEvent
- All Implemented Interfaces:
CancellableEvent,LockableEvent,org.bukkit.event.Cancellable
- Direct Known Subclasses:
LoginRequestEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancallEvt()intcount()Returns the lock counter.protected abstract BukkitLockableNewActionEvent<?> createNewActionEvent(org.bukkit.plugin.Plugin owner, LockableEventAction action) bytegetLock()Deprecated.protected abstract voidinternalCall(int id) voidlock(org.bukkit.plugin.Plugin owner) Locks the event.voidunlock(org.bukkit.plugin.Plugin owner) Unlocks the event.Methods inherited from class com.nickuc.login.api.event.internal.bukkit.BukkitCancellableEvent
isCancelled, setCancelledMethods inherited from class com.nickuc.login.api.event.internal.bukkit.BukkitEvent
getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BukkitLockableEvent
protected BukkitLockableEvent() -
BukkitLockableEvent
protected BukkitLockableEvent(boolean async)
-
-
Method Details
-
createNewActionEvent
protected abstract BukkitLockableNewActionEvent<?> createNewActionEvent(org.bukkit.plugin.Plugin owner, LockableEventAction action) -
internalCall
protected abstract void internalCall(int id) -
lock
public void lock(@Nonnull org.bukkit.plugin.Plugin owner) Locks the event.- Parameters:
owner- the plugin responsible for this action.
-
unlock
public void unlock(@Nonnull org.bukkit.plugin.Plugin owner) 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
-