Add API for per-world view distancesAdapted from Spigot commit ea7e48b3e6d973551afe440a8cbc6d96a49d10fc.
Add API for per-world simulation distancesAdapted from Spigot commit 6234669574cf0c5fb951f504399f4b171d1a09a7.