Class ChunkRegenerator

java.lang.Object
us.talabrek.ultimateskyblock.world.ChunkRegenerator

public class ChunkRegenerator extends Object
Class responsible for regenerating chunks.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    regenerateChunk(@NotNull org.bukkit.Chunk chunk)
    Regenerates the given Chunk, removing all it's entities except players and setting the default biome.
    void
    regenerateChunks(@NotNull List<org.bukkit.Chunk> chunkList, @Nullable Runnable onCompletion)
    Regenerates the given list of Chunks at the configured chunks/tick speed (default: 4).

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • regenerateChunks

      public void regenerateChunks(@NotNull @NotNull List<org.bukkit.Chunk> chunkList, @Nullable @Nullable Runnable onCompletion)
      Regenerates the given list of Chunks at the configured chunks/tick speed (default: 4).
      Parameters:
      chunkList - List of chunks to regenerate.
      onCompletion - Runnable to schedule on completion, or null to call no runnable.
    • regenerateChunk

      public void regenerateChunk(@NotNull @NotNull org.bukkit.Chunk chunk)
      Regenerates the given Chunk, removing all it's entities except players and setting the default biome.
      Parameters:
      chunk - Chunk to regenerate.