Class Regenerator.ChunkStatusWrapper<IChunkAccess>

java.lang.Object
com.fastasyncworldedit.bukkit.adapter.Regenerator.ChunkStatusWrapper<IChunkAccess>
Type Parameters:
IChunkAccess - the IChunkAccess class of the current Minecraft implementation
Enclosing class:
Regenerator<IChunkAccess,ProtoChunk extends IChunkAccess,Chunk extends IChunkAccess,ChunkStatus extends Regenerator.ChunkStatusWrapper<IChunkAccess>>

public abstract static class Regenerator.ChunkStatusWrapper<IChunkAccess> extends Object
This class is used to wrap the ChunkStatus of the current Minecraft implementation and as the implementation to execute a chunk generation step.
  • Constructor Details

    • ChunkStatusWrapper

      public ChunkStatusWrapper()
  • Method Details

    • requiredNeighborChunkRadius

      public abstract int requiredNeighborChunkRadius()
      Return the required neighbor chunk radius the wrapped ChunkStatus requires.
      Returns:
      the radius of required neighbor chunks
    • name

      public abstract String name()
      Return the name of the wrapped ChunkStatus.
      Returns:
      the radius of required neighbor chunks
    • processChunk

      public abstract CompletableFuture<?> processChunk(Long xz, List<IChunkAccess> accessibleChunks)
      Return the name of the wrapped ChunkStatus.
      Parameters:
      xz - represents the chunk coordinates of the chunk to process as denoted by MathMan
      accessibleChunks - a list of chunks that will be used during the execution of the wrapped ChunkStatus. This list is order in the correct order required by the ChunkStatus, unless Mojang suddenly decides to do things differently.