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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds 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 HandlerListbooleanRemoves a single arena from the queue of arenas that are going to be added to the system.voidsetAddingQueue(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, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
trueif the arena was removed,falseotherwise
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-