Class WorldCoordMaterialRemover

java.lang.Object
com.palmergames.bukkit.towny.regen.WorldCoordMaterialRemover

public class WorldCoordMaterialRemover extends Object
  • Constructor Details

    • WorldCoordMaterialRemover

      public WorldCoordMaterialRemover()
  • Method Details

    • hasQueue

      public static boolean hasQueue()
      Returns:
      true if there are any chunks being processed.
    • isQueued

      public static boolean isQueued(WorldCoord worldCoord)
      Parameters:
      worldCoord - WorldCoord
      Returns:
      true if this WorldCoord is needing Materials removed.
    • getQueueSize

      public static int getQueueSize()
      Returns:
      size of the waiting queue.
    • addToQueue

      public static void addToQueue(WorldCoord worldCoord)
      Parameters:
      worldCoord - WorldCoord to add to queue.
    • getWorldCoordFromQueue

      @Nullable public static @Nullable WorldCoord getWorldCoordFromQueue()
      Returns:
      a WorldCoord that is queued to have materials removed or null.
    • isActiveQueue

      public static boolean isActiveQueue(WorldCoord worldCoord)
      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

      public static void addToActiveQueue(WorldCoord worldCoord)
      Parameters:
      worldCoord - WorldCoord to move to the activeQueue.
    • queueUnclaimMaterialsDeletion

      public static void queueUnclaimMaterialsDeletion(WorldCoord worldCoord)
      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.