View Distance

This commit allows the retrieval of per world view distances.
This commit is contained in:
Spottedleaf authored and NotAlexNoyle committed 2019-07-30 13:47:34 -07:00
1 parent ef4b018fb2
commit 976528c832
1 file changed
+16
+16
View File
@@ -2638,6 +2638,22 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
@Nullable
StructureSearchResult locateNearestStructure(@NotNull Location origin, @NotNull Structure structure, int radius, boolean findUnexplored);
// Spigot start
/**
* Returns the view distance used for this world.
*
* @return the view distance used for this world
*/
int getViewDistance();
/**
* Returns the simulation distance used for this world.
*
* @return the simulation distance used for this world
*/
int getSimulationDistance();
// Spigot end
// Spigot start
public class Spigot {