modify

Modifies this location by applying the given block to it. The block is used to modify the location's x, y and z coordinates. If this location is an instance of MutableLocation, the coordinates will be modified directly. Otherwise, a new instance of ImmutableLocation will be created with the modified coordinates.

Parameters

block

the block to apply to this location