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 TypeMethodDescriptionvoid
filterBlocks
(Filter filter, ChunkFilterBlock block, Region region, boolean full) Filter through all the blocks in the chunkdefault BlockVector3
Return the minimum block coordinate of the chunkdefault IChunk
getRoot()
If the chunk is a delegate, returns its parent's rootint
getX()
Get chunkXint
getZ()
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 IChunk
reset()
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.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
-
init
Initialize at the location (allows for reuse) - It's expected initialization will clear any set fields -
getX
int getX()Get chunkX- Returns:
- the x coordinate of the chunk
-
getZ
int getZ()Get chunkZ- Returns:
- the z coordinate of the chunk
-
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
-