Package-level declarations

Properties

Link copied to clipboard
val Level.bedRule: BedRule
Link copied to clipboard
val LevelChunk.filledSections: List<LevelChunkSection>

Returns the loaded section slice from section 0 through LevelChunk.highestFilledSectionIndex.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun LevelChunkSection.forEachBlock(action: (localX: Int, localY: Int, localZ: Int, BlockState) -> Unit)

Iterates all 4096 block states in a section and provides local section coordinates (0..15).

Link copied to clipboard
inline fun LevelChunk.forEachSectionBlock(sectionIndex: Int, mutable: BlockPos.MutableBlockPos = BlockPos.MutableBlockPos(), action: (BlockPos, BlockState) -> Unit)

Iterates all blocks in a specific section index and exposes world-space block positions.

Link copied to clipboard
fun LevelChunk.sectionBottonY(index: Int): Int

Converts a section index to the section base world Y (multiple of 16).