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>>
This class is used to wrap the ChunkStatus of the current Minecraft implementation and as the implementation to execute a chunk generation step.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringname()Return the name of the wrappedChunkStatus.abstract CompletableFuture<?>processChunk(Long xz, List<IChunkAccess> accessibleChunks) Return the name of the wrappedChunkStatus.abstract intReturn the required neighbor chunk radius the wrappedChunkStatusrequires.
-
Constructor Details
-
ChunkStatusWrapper
public ChunkStatusWrapper()
-
-
Method Details
-
requiredNeighborChunkRadius
public abstract int requiredNeighborChunkRadius()Return the required neighbor chunk radius the wrappedChunkStatusrequires.- Returns:
- the radius of required neighbor chunks
-
name
Return the name of the wrappedChunkStatus.- Returns:
- the radius of required neighbor chunks
-
processChunk
Return the name of the wrappedChunkStatus.- Parameters:
xz- represents the chunk coordinates of the chunk to process as denoted byMathManaccessibleChunks- a list of chunks that will be used during the execution of the wrappedChunkStatus. This list is order in the correct order required by theChunkStatus, unless Mojang suddenly decides to do things differently.
-