Minestom icon indicating copy to clipboard operation
Minestom copied to clipboard

Add a getBlock() method to Batches

Open MrGazdag opened this issue 2 years ago • 0 comments

This PR adds the getBlock(x, y, z) methods from Block.Getter to Batches, thus letting one query changed blocks from the block map. This is useful if you would like to pre-process batches before applying them to an instance. According to the default behavior of the internal maps, the methods return null if the position is not changed in the Batch.

MrGazdag avatar May 07 '22 16:05 MrGazdag