Interface InstanceBatch
- All Superinterfaces:
BlockModifier
- All Known Implementing Classes:
BlockBatch
,ChunkBatch
public interface InstanceBatch extends BlockModifier
A Batch is a tool used to cache a list of blocks to place and flush it whenever you want.
Does offer a performance benefit because clients are notified of the changes only once all the blocks are placed.
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.ExecutorService
BLOCK_BATCH_POOL
-
Method Summary
Methods inherited from interface net.minestom.server.instance.BlockModifier
setBlock, setBlock, setBlockStateId, setBlockStateId, setBlockStateId, setCustomBlock, setCustomBlock, setCustomBlock, setCustomBlock, setCustomBlock, setSeparateBlocks, setSeparateBlocks, setSeparateBlocks
-
Field Details
-
BLOCK_BATCH_POOL
static final java.util.concurrent.ExecutorService BLOCK_BATCH_POOL
-