Class WorldCoordEntityRemover
java.lang.Object
com.palmergames.bukkit.towny.regen.WorldCoordEntityRemover
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToActiveQueue
(WorldCoord worldCoord) static void
addToQueue
(WorldCoord worldCoord) static void
doDeleteTownBlockEntities
(WorldCoord worldCoord) Deletes all of the world's deleted-entities-on-unclaim from the given WorldCoord.static int
static int
static @Nullable WorldCoord
static boolean
hasQueue()
static boolean
isActiveQueue
(WorldCoord worldCoord) static boolean
isQueued
(WorldCoord worldCoord)
-
Constructor Details
-
WorldCoordEntityRemover
public WorldCoordEntityRemover()
-
-
Method Details
-
hasQueue
public static boolean hasQueue()- Returns:
- true if there are any chunks being processed.
-
isQueued
- Parameters:
worldCoord
- WorldCoord- Returns:
- true if this WorldCoord is needing entities removed.
-
getQueueSize
public static int getQueueSize()- Returns:
- return the current queue size.
-
addToQueue
- Parameters:
worldCoord
- WorldCoord to add to queue.
-
getWorldCoordFromQueue
- Returns:
- a WorldCoord that is queued to have entities removed or null.
-
isActiveQueue
- Returns:
- true if this WorldCoord is actively being processed.
-
getActiveQueueSize
public static int getActiveQueueSize()- Returns:
- size of activeQueue list.
-
addToActiveQueue
- Parameters:
worldCoord
- WorldCoord to add to the actively queued list.
-
doDeleteTownBlockEntities
Deletes all of the world's deleted-entities-on-unclaim from the given WorldCoord.- Parameters:
worldCoord
- - WorldCoord for the Town Block
-