Class ChunkRegenerator
java.lang.Object
us.talabrek.ultimateskyblock.world.ChunkRegenerator
Class responsible for regenerating chunks.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
regenerateChunk
(@NotNull org.bukkit.Chunk chunk) Regenerates the givenChunk
, 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 ofChunk
s at the configured chunks/tick speed (default: 4).
-
Method Details
-
regenerateChunks
public void regenerateChunks(@NotNull @NotNull List<org.bukkit.Chunk> chunkList, @Nullable @Nullable Runnable onCompletion) Regenerates the given list ofChunk
s 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 givenChunk
, removing all it's entities except players and setting the default biome.- Parameters:
chunk
- Chunk to regenerate.
-