Rounding location to ints

I am trying to check if the players location is the same as one stored in an arraylist.

The problem is the location stored it like (1000, 100, 1000)

But the players location gets the exact double like (1000.435456, 100.3423, 1000.468873) and thus not matching.

Is there a way i can rectify this issue? maybe a way to round the getLocation values?

I think there may be a method in Location to get the block position as a Vector3i. Try using that.

I can see getBlockPosition. I will give that a go.

Edit: Perfect, thanks.