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 IChunk
getRoot()
If the chunk is a delegate, returns its parent's root@org.jetbrains.annotations.Range(from=0L, to=15L) int
getX()
Get chunkX@org.jetbrains.annotations.Range(from=0L, to=15L) int
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
getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTile, getTiles, hasSection, load, loadIfPresent, removeSectionLighting, toByteArray, toByteArray, trim
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkGet
call, getBiome, getBiomeType, getBlock, getCopy, getEmittedLight, getEntity, getFullBlock, getHeightMap, getMaxY, getMinY, getSkyLight, isCreateCopy, optimize, setCreateCopy, setHeightmapToGet, setLightingToGet, setSkyLightingToGet
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkSet
commit, 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
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLight
Methods inherited from interface com.fastasyncworldedit.core.queue.ITileInput
getTile
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
@org.jetbrains.annotations.Range(from=0L, to=15L) int getX()Get chunkX- Returns:
- the x coordinate of the chunk
-
getZ
@org.jetbrains.annotations.Range(from=0L, to=15L) int getZ()Get chunkZ- Returns:
- the z coordinate of the chunk
-
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
-