Interface IChunk
- All Superinterfaces:
IBlocks,IChunkGet,IChunkSet,InputExtent,ITileInput,OutputExtent,Trimable
- All Known Subinterfaces:
IQueueChunk<T>
- All Known Implementing Classes:
ChunkHolder,NullChunk
Represents a chunk in the queue
IQueueExtent Used for getting and setting blocks / biomes
/ entities-
Method Summary
Modifier and TypeMethodDescriptionvoidfilterBlocks(Filter filter, ChunkFilterBlock block, Region region, boolean full) Filter through all the blocks in the chunkdefault BlockVector3Return the minimum block coordinate of the chunkdefault IChunkgetRoot()If the chunk is a delegate, returns its parent's rootintgetX()Get chunkXintgetZ()Get chunkZdefault <V extends IChunk>
voidinit(IQueueExtent<V> extent, int x, int z) Initialize at the location (allows for reuse) - It's expected initialization will clear any set fieldsdefault IChunkreset()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.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
-
init
Initialize at the location (allows for reuse) - It's expected initialization will clear any set fields -
getX
int getX()Get chunkX -
getZ
int getZ()Get chunkZ -
getChunkBlockCoord
Return the minimum block coordinate of the chunk- Returns:
- BlockVector3 of minimum block coordinate
- Since:
- 2.8.4
-
getRoot
If the chunk is a delegate, returns its parent's root- Returns:
- root IChunk
-
filterBlocks
Filter through all the blocks in the chunk- Parameters:
filter- the filterblock- The filter blockregion- The region allowed to filter (maybe null)
-
reset
-