Class AsyncArenaCloneQueueEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.AsyncArenaCloneQueueEvent
- All Implemented Interfaces:
Cancellable
Gets called when the auto clone system is looking for the next queue of arenas.
The system automatically performs checks every few seconds. In case new arenas (at least one) that fit the requirements have been found, this event will be called.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an arena to the end of queue of arenas that are going to be added to the system.Returns the queue of arenas that are going to be added to the system.static HandlerList
boolean
Removes a single arena from the queue of arenas that are going to be added to the system.void
setAddingQueue
(Queue<QueuedCloningArena> addingQueue) Sets the queue of arenas that are going to be added to the system.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
AsyncArenaCloneQueueEvent
-
-
Method Details
-
getAddingQueue
Returns the queue of arenas that are going to be added to the system.This queue is mutable and can be modified.
- Returns:
- The queue of arenas
-
setAddingQueue
Sets the queue of arenas that are going to be added to the system.- Parameters:
addingQueue
- The queue of arenas
-
addToAddingQueue
Adds an arena to the end of queue of arenas that are going to be added to the system.- Parameters:
arena
- The arena to add
-
removeFromAddingQueue
Removes a single arena from the queue of arenas that are going to be added to the system.- Parameters:
arena
- The arena to remove- Returns:
true
if the arena was removed,false
otherwise
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-