drawBoxAtBlock

fun drawBoxAtBlock(blockPos: BlockPos, color: Color, thickness: Float = 3.0f, relocate: Boolean = true)

Draws a cube outline for the block at the given blockPos.

This outline will be visible through walls. The depth test is disabled.

Parameters

relocate

Translates the coordinates to account for the camera position. See WorldRenderUtils for more information.


fun drawBoxAtBlock(x: Double, y: Double, z: Double, color: Color, thickness: Float = 3.0f, relocate: Boolean = true)

Draws a cube outline of size 1 starting at x, y, z which extends by 1 along the axes in positive direction.

This outline will be visible through walls. The depth test is disabled.

Parameters

relocate

Translates the coordinates to account for the camera position. See WorldRenderUtils for more information.