Add API for per-world simulation distances

Adapted from Spigot commit 6234669574cf0c5fb951f504399f4b171d1a09a7.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2023-12-23 14:32:35 +11:00
parent ce1f206316
commit d34ae053c8

View File

@ -1543,6 +1543,13 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
*/
int getViewDistance();
/**
* Returns the simulation distance used for this world.
*
* @return the simulation distance used for this world
*/
int getSimulationDistance();
/**
* Gets the folder of this world on disk.
*