Interface IChunk
- All Superinterfaces:
IBlocks, IChunkGet, IChunkSet, InputExtent, ITileInput, OutputExtent, Trimable
- All Known Subinterfaces:
IQueueChunk<T>
- All Known Implementing Classes:
ChunkHolder, NullChunk, WrapperChunk
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 IBlocks
entities, getEntities, getMaxSectionPosition, getMinSectionPosition, getSectionCount, getTiles, hasNonEmptySection, hasSection, load, loadIfPresent, removeSectionLighting, tile, tiles, toByteArray, toByteArray, trimMethods inherited from interface 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 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 InputExtent
getBiome, getBlock, getBrightness, getBrightness, getEmittedLight, getFullBlock, getOpacity, getOpacity, getSkyLightMethods inherited from interface 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
-
getZ
-
getChunkBlockCoord
Return the minimum block coordinate of the chunk- Returns:
- BlockVector3 of minimum block coordinate
- Since:
- 2.8.4
-
getRoot
-
filterBlocks
Filter through all the blocks in the chunk- Parameters:
filter- the filterblock- The filter blockregion- The region allowed to filter (maybe null)
-
reset
-