Class WorldCoordEntityRemover

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

public class WorldCoordEntityRemover extends Object
  • Constructor Details

    • WorldCoordEntityRemover

      public WorldCoordEntityRemover()
  • 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 entities removed.
    • getQueueSize

      public static int getQueueSize()
      Returns:
      return the current queue size.
    • 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 entities removed or null.
    • isActiveQueue

      public static boolean isActiveQueue(WorldCoord worldCoord)
      Returns:
      true if this WorldCoord is actively being processed.
    • getActiveQueueSize

      public static int getActiveQueueSize()
      Returns:
      size of activeQueue list.
    • addToActiveQueue

      public static void addToActiveQueue(WorldCoord worldCoord)
      Parameters:
      worldCoord - WorldCoord to add to the actively queued list.
    • doDeleteTownBlockEntities

      public static void doDeleteTownBlockEntities(WorldCoord worldCoord)
      Deletes all of the world's deleted-entities-on-unclaim from the given WorldCoord.
      Parameters:
      worldCoord - - WorldCoord for the Town Block