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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.Methods inherited from class com.nickuc.login.api.event.internal.bukkit.BukkitCancellableEvent
isCancelled, setCancelled
Methods inherited from class com.nickuc.login.api.event.internal.bukkit.BukkitEvent
getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BukkitLockableEvent
protected BukkitLockableEvent()
-
-
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:
callEvt
in interfaceLockableEvent
-