countBlocks

fun World.countBlocks(from: Location, to: Location): Int

Counts the blocks in an area that aren't empty.

Since

0.2.0

Return

The amount of blocks in that area that aren't empty

Parameters

from

The location where the count starts

to

The location where the count stops

Throws

If the area is invalid