View Distance
This commit allows the retrieval of per world view distances.
This commit is contained in:
1 parent
ef4b018fb2
commit
976528c832
1 file changed
+16
@@ -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 {
|
||||
|
||||
|
||||
Reference in new issue
Block a user