Class WorldCoordMaterialRemover
java.lang.Object
com.palmergames.bukkit.towny.regen.WorldCoordMaterialRemover
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToActiveQueue
(WorldCoord worldCoord) static void
addToQueue
(WorldCoord worldCoord) static void
deleteMaterialsFromWorldCoord
(WorldCoord coord, Collection<org.bukkit.Material> collection) Deletes all blocks which are found in the given Collection of Materialsstatic int
static int
static @Nullable WorldCoord
static boolean
hasQueue()
static boolean
isActiveQueue
(WorldCoord worldCoord) static boolean
isQueued
(WorldCoord worldCoord) static void
queueDeleteWorldCoordMaterials
(WorldCoord coord, Collection<org.bukkit.Material> collection) Used to delete a collection of Materials from a worldCoord.static void
queueUnclaimMaterialsDeletion
(WorldCoord worldCoord) Used to delete the world's PlotManagementDeleteIds when a townblock is unclaimed.
-
Constructor Details
-
WorldCoordMaterialRemover
public WorldCoordMaterialRemover()
-
-
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 Materials removed.
-
getQueueSize
public static int getQueueSize()- Returns:
- size of the waiting queue.
-
addToQueue
- Parameters:
worldCoord
- WorldCoord to add to queue.
-
getWorldCoordFromQueue
- Returns:
- a WorldCoord that is queued to have materials removed or null.
-
isActiveQueue
- Parameters:
worldCoord
- WorldCoord to check for.- Returns:
- true if this WorldCoord is being actively processed.
-
getActiveQueueSize
public static int getActiveQueueSize()- Returns:
- size of the activeQueue.
-
addToActiveQueue
- Parameters:
worldCoord
- WorldCoord to move to the activeQueue.
-
queueUnclaimMaterialsDeletion
Used to delete the world's PlotManagementDeleteIds when a townblock is unclaimed.- Parameters:
worldCoord
- - WorldCoord for the Town Block
-
queueDeleteWorldCoordMaterials
public static void queueDeleteWorldCoordMaterials(WorldCoord coord, Collection<org.bukkit.Material> collection) Used to delete a collection of Materials from a worldCoord. Towny uses this for the /plot clear command.- Parameters:
coord
- WorldCoord to remove materials from.collection
- Material collection that will be used to delete.
-
deleteMaterialsFromWorldCoord
public static void deleteMaterialsFromWorldCoord(WorldCoord coord, Collection<org.bukkit.Material> collection) Deletes all blocks which are found in the given Collection of Materials- Parameters:
coord
- WorldCoord to delete blocks from.collection
- Collection of Materials from which to remove.
-