Constructor and Description |
---|
Imanity() |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Chunk> |
getChunkAtAsynchronously(Block block,
AsyncPriority priority)
Get Chunk asynchronously with urgent priority (which is the priority while get chunk block main)
|
CompletableFuture<Chunk> |
getChunkAtAsynchronously(int x,
int z,
AsyncPriority priority)
Get Chunk asynchronously with urgent priority (which is the priority while get chunk block main)
|
CompletableFuture<Chunk> |
getChunkAtAsynchronously(Location location,
AsyncPriority priority)
Get Chunk asynchronously with urgent priority (which is the priority while get chunk block main)
|
boolean |
isChunkFillProcessorSupported()
Is chunk fill processor supported for the server?
|
ChunkFillProcessor |
newChunkFillProcessor(Location location,
int radius)
Create chunk fill processor
Chunk fill processor is a tool to load chunk within a radius from a center position
Similar to WorldBorder's /wb fill command but uses async chunk feature from ImanitySpigot3
This requires isChunkFillProcessorSupported() to return true.
|
ChunkFillProcessor |
newChunkFillProcessor(Location location,
int radius,
int chunkPerBatch,
int batchesPerSaving)
Create chunk fill processor
Chunk fill processor is a tool to load chunk within a radius from a center position
Similar to WorldBorder's /wb fill command but uses async chunk feature from ImanitySpigot3
This requires isChunkFillProcessorSupported() to return true.
|
public CompletableFuture<Chunk> getChunkAtAsynchronously(int x, int z, AsyncPriority priority)
x
- The X coordinatez
- The Z coordinatepublic CompletableFuture<Chunk> getChunkAtAsynchronously(Location location, AsyncPriority priority)
location
- The Locationpublic CompletableFuture<Chunk> getChunkAtAsynchronously(Block block, AsyncPriority priority)
block
- The Blockpublic ChunkFillProcessor newChunkFillProcessor(Location location, int radius)
location
- The Locationradius
- The radius, in blockpublic ChunkFillProcessor newChunkFillProcessor(Location location, int radius, int chunkPerBatch, int batchesPerSaving)
location
- The Locationradius
- The radius, in blockchunkPerBatch
- How many chunks to be process per batchbatchesPerSaving
- Do saving every x batches processedpublic boolean isChunkFillProcessorSupported()
Copyright © 2022. All rights reserved.