ChunkColumn

class ChunkColumn

16x256x16 (XYZ) area of the world. Consists of 16 ChunkSections vertically stacked.

Constructors

ChunkColumn
Link copied to clipboard
fun ChunkColumn(x: Int, z: Int, minY: Int = VanillaMinY, maxY: Int = VanillaMaxY)
ChunkColumn
Link copied to clipboard
fun ChunkColumn(chunkData: NBTCompound, __minY: Int = VanillaMinY, __maxY: Int = VanillaMaxY)
ChunkColumn
Link copied to clipboard
fun ChunkColumn(chunkData: NBTCompound)
minY and maxY are ignored for 1.

Types

Companion
Link copied to clipboard
object Companion
GenerationStatus
Link copied to clipboard
enum GenerationStatus : Enum<ChunkColumn.GenerationStatus>

Functions

changeVersion
Link copied to clipboard
fun changeVersion(version: SupportedVersion)
Updates this chunk version, both the 'version' field and the DataVersion
getBiome
Link copied to clipboard
fun getBiome(x: Int, y: Int, z: Int): String
Returns the biome stored inside this column at the given position, looking into the corresponding section Be aware that biome data may not be present inside the section, in that case, this method returns UnknownBiome
getBlockState
Link copied to clipboard
fun getBlockState(x: Int, y: Int, z: Int): BlockState
Returns the block state at the given position in the chunk.
getSection
Link copied to clipboard
fun getSection(sectionY: Byte): ChunkSection
Gets the section at the given section Y (basically blockY / 16) value.
setBiome
Link copied to clipboard
fun setBiome(x: Int, y: Int, z: Int, biomeID: String)
Sets the biome stored inside this column at the given position, looking into the corresponding section If biome data did not exist before calling this method, the section's biome array is created then filled with UnknownBiome
setBlockState
Link copied to clipboard
fun setBlockState(x: Int, y: Int, z: Int, state: BlockState)
Sets the block state at the given position in the chunk.
setYRange
Link copied to clipboard
fun setYRange(minY: Int, maxY: Int)
Changes the Y range of this chunk
toNBT
Link copied to clipboard
fun toNBT(version: SupportedVersion = this.version): NBTCompound
Converts this ChunkColumn into its NBT representation.

Properties

airCarvingMask
Link copied to clipboard
var airCarvingMask: ImmutableByteArray? = null
dataVersion
Link copied to clipboard
var dataVersion: Int
Data version this chunk is in.
entities
Link copied to clipboard
var entities: NBTList<NBTCompound>
generationStatus
Link copied to clipboard
var generationStatus: ChunkColumn.GenerationStatus
inhabitedTime
Link copied to clipboard
var inhabitedTime: Long = 0L
lastUpdate
Link copied to clipboard
var lastUpdate: Long = 0L
lightOn
Link copied to clipboard
var lightOn: Boolean = true
lights
Link copied to clipboard
var lights: NBTList<NBTList<NBTShort>>? = null
liquidCarvingMask
Link copied to clipboard
var liquidCarvingMask: ImmutableByteArray? = null
liquidsToBeTicked
Link copied to clipboard
var liquidsToBeTicked: NBTList<NBTList<NBTShort>>? = null
liquidTicks
Link copied to clipboard
var liquidTicks: NBTList<NBTCompound>
logicalHeight
Link copied to clipboard
val logicalHeight: Int
maxY
Link copied to clipboard
var maxY: Int
Max Y value available in this chunk (block Y)
minY
Link copied to clipboard
var minY: Int
Min Y value available in this chunk (block Y)
motionBlockingHeightMap
Link copied to clipboard
var motionBlockingHeightMap: Heightmap
motionBlockingNoLeavesHeightMap
Link copied to clipboard
var motionBlockingNoLeavesHeightMap: Heightmap? = null
oceanFloorHeightMap
Link copied to clipboard
var oceanFloorHeightMap: Heightmap? = null
oceanFloorWorldGenHeightMap
Link copied to clipboard
var oceanFloorWorldGenHeightMap: Heightmap? = null
postProcessing
Link copied to clipboard
var postProcessing: NBTList<NBTList<NBTShort>>? = null
sections
Link copied to clipboard
val sections: ConcurrentHashMap<Byte, ChunkSection>
Chunk sections of this chunk.
structures
Link copied to clipboard
var structures: NBTCompound? = null
tileEntities
Link copied to clipboard
var tileEntities: NBTList<NBTCompound>
tileTicks
Link copied to clipboard
var tileTicks: NBTList<NBTCompound>
toBeTicked
Link copied to clipboard
var toBeTicked: NBTList<NBTList<NBTShort>>? = null
version
Link copied to clipboard
var version: SupportedVersion
Minecraft Version this chunk comes from.
worldSurfaceHeightMap
Link copied to clipboard
var worldSurfaceHeightMap: Heightmap
worldSurfaceWorldGenHeightMap
Link copied to clipboard
var worldSurfaceWorldGenHeightMap: Heightmap? = null
x
Link copied to clipboard
var x: Int = 0
chunk coordinate on X axis (world absolute)
z
Link copied to clipboard
var z: Int = 0
chunk coordinate on Z axis (world absolute)