Chunk.firstBlock

Gets the y position of the first non-air block from top.

class Chunk
ptrdiff_t
firstBlock
(
ubyte x
,
ubyte z
)

Return Value

Type: ptrdiff_t

the y position of the block or -1

Examples

if(chunk.firstBlock(12, 9) == -1) {
   d("The column is air-only");
}

Meta