Package-level declarations
Properties
Functions
Link copied to clipboard
Link copied to clipboard
LevelReader.findBlocksIn applies BlockPos.containing to both AABB.getMinPosition and AABB.getMaxPosition. This function uses floorToInt of min position and ceilToInt of max position.
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
inline fun <T : Entity> EntityGetter.getEntitiesInCube(midPos: Vec3, range: Double, predicate: Predicate<T> = Predicates.alwaysTrue()): MutableList<T>
fun EntityGetter.getEntitiesInCube(midPos: Vec3, range: Double, exclusion: Entity? = null, predicate: Predicate<Entity> = Predicates.alwaysTrue()): MutableList<Entity>
Link copied to clipboard
Allocates a unique negative entity ID for a locally spawned entity.
Link copied to clipboard
Converts a section index to the section base world Y (multiple of 16).