mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-11 10:01:55 +01:00
Add API for per-world view distances
Adapted from Spigot commit ea7e48b3e6d973551afe440a8cbc6d96a49d10fc. By: Spottedleaf <Spottedleaf@users.noreply.github.com>
This commit is contained in:
parent
804a80b327
commit
ce1f206316
@ -1536,6 +1536,13 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
|||||||
@NotNull
|
@NotNull
|
||||||
public Difficulty getDifficulty();
|
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.
|
* Gets the folder of this world on disk.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user