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 boolean
Get if the thank has any running tasks, locked locks, etc.default void
join()
Call and join - Should be done async, if at alldefault void
lockSet()
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, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArray, trim
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunk
filterBlocks, getChunkBlockCoord, getRoot, getX, getZ, init
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkGet
call, entity, getBiome, getBiomeType, getBlock, getCopy, getEmittedLight, getEntity, getFullBlock, getHeightMap, getMaxY, getMinY, getSkyLight, getTile, isCreateCopy, lockCall, optimize, setCreateCopy, setHeightmapToGet, setLightingToGet, setSkyLightingToGet, unlockCall
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkSet
commit, createCopy, entity, getBiomes, getBitMask, getEntityRemoves, getHeightMaps, getLight, getSkyLight, hasBiomes, hasBiomes, hasLight, isEmpty, isFastMode, removeEntity, setBiome, setBiome, setBitMask, setBlock, setBlockLight, setBlocks, setEntity, setFastMode, setFullBright, setHeightMap, setLightLayer, setSkyLight, setSkyLightLayer, setTile, tile
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
Methods 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.
-