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.voidInvalidate theWrapperChunkif present.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)voidsetWrapper(WrapperChunk<?> parentWrapper) Set a newWrapperChunkthat allows prevention of aChunkHolderinstance being cached "locally" whilst it has been called/submitted, causing issues with processing/postprocessing, etc.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) -
setWrapper
Set a newWrapperChunkthat allows prevention of aChunkHolderinstance being cached "locally" whilst it has been called/submitted, causing issues with processing/postprocessing, etc. If a wrapper has already been set, throwsIllegalStateExceptionas there should be no circumstance for us to set a new wrapper (does nothing if attempting to set the same wrapper).- Parameters:
parentWrapper- wrapper wrapping thisinstance- Throws:
IllegalStateException- if there is already a wrapper set and a new wrapper instance is attempted to be se- Since:
- TODO
-
invalidateWrapper
void invalidateWrapper()Invalidate theWrapperChunkif present.- Since:
- 2.15.0
-
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.
-