Interface IQueueChunk<T extends Future<T>>
- All Superinterfaces:
Callable<T>,IBlocks,IChunk,IChunkGet,IChunkSet,InputExtent,ITileInput,OutputExtent,Trimable
- All Known Implementing Classes:
ChunkHolder,NullChunk
-
Method Summary
Modifier and TypeMethodDescriptioncall()Apply the queued changes to the world containing this chunk.default booleanGet if the thank has any running tasks, locked locks, etc.default voidjoin()Call and join - Should be done async, if at alldefault voidlockSet()Prevent set operations to the chunk, should typically be used when a chunk is submitted before the edit is necessarily completed.default IQueueChunk<T> reset()Reset (defaults to just calling init)Methods inherited from interface com.fastasyncworldedit.core.queue.IBlocks
entities, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTiles, hasNonEmptySection, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArray, trimMethods inherited from interface com.fastasyncworldedit.core.queue.IChunk
filterBlocks, getChunkBlockCoord, getRoot, getX, getZ, initMethods inherited from interface com.fastasyncworldedit.core.queue.IChunkGet
call, entity, getBiome, getBiomeType, getBlock, getCopy, getEmittedLight, getEntity, getFullBlock, getFullEntities, getHeightMap, getMaxY, getMinY, getSkyLight, getTile, isCreateCopy, lockCall, optimize, setCreateCopy, setHeightmapToGet, setLightingToGet, setSkyLightingToGet, unlockCallMethods inherited from interface com.fastasyncworldedit.core.queue.IChunkSet
commit, createCopy, entity, getBiomes, getBitMask, getEntityRemoves, getHeightMaps, getLight, getSideEffectSet, getSkyLight, hasBiomes, hasBiomes, hasLight, isEmpty, isFastMode, removeEntity, setBiome, setBiome, setBitMask, setBlock, setBlockLight, setBlocks, setEntity, setFastMode, setFullBright, setHeightMap, setLightLayer, setSideEffectSet, setSkyLight, setSkyLightLayer, setTile, tileMethods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLightMethods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, setBiome, setBlock, setBlockLight, setSkyLight
-
Method Details
-
reset
Reset (defaults to just calling init) -
call
T call()Apply the queued changes to the world containing this chunk.The future returned may return another future. To ensure completion keep calling
Future.get()on each result. -
join
Call and join - Should be done async, if at all -
hasRunning
default boolean hasRunning()Get if the thank has any running tasks, locked locks, etc. -
lockSet
default void lockSet()Prevent set operations to the chunk, should typically be used when a chunk is submitted before the edit is necessarily completed.
-