mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add API for per-world view distances
Adapted from Spigot commit ea7e48b3e6d973551afe440a8cbc6d96a49d10fc.
This commit is contained in:
parent
0b541e604d
commit
26e1774edf
1 changed files with 7 additions and 0 deletions
|
@ -1536,6 +1536,13 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
|||
@NotNull
|
||||
public Difficulty getDifficulty();
|
||||
|
||||
/**
|
||||
* Returns the view distance used for this world.
|
||||
*
|
||||
* @return the view distance used for this world
|
||||
*/
|
||||
int getViewDistance();
|
||||
|
||||
/**
|
||||
* Gets the folder of this world on disk.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue