2020-11-03 07:00:00 +11:00
|
|
|
From e9342f1a11e3faa43452ffb1368d69a7f15ce659 Mon Sep 17 00:00:00 2001
|
2019-08-08 20:48:47 +10:00
|
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
|
|
Date: Tue, 30 Jul 2019 13:47:34 -0700
|
|
|
|
Subject: [PATCH] View Distance
|
|
|
|
|
|
|
|
This commit allows the retrieval of per world view distances.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
2020-08-23 17:36:54 +10:00
|
|
|
index 9fd01498..d355453d 100644
|
2019-08-08 20:48:47 +10:00
|
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
|
|
+++ b/src/main/java/org/bukkit/World.java
|
2020-08-23 17:36:54 +10:00
|
|
|
@@ -2302,6 +2302,15 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
2019-08-08 20:48:47 +10:00
|
|
|
@Nullable
|
|
|
|
public Location locateNearestStructure(@NotNull Location origin, @NotNull StructureType structureType, int radius, boolean findUnexplored);
|
|
|
|
|
|
|
|
+ // Spigot start
|
|
|
|
+ /**
|
|
|
|
+ * Returns the view distance used for this world.
|
|
|
|
+ *
|
|
|
|
+ * @return the view distance used for this world
|
|
|
|
+ */
|
|
|
|
+ int getViewDistance();
|
|
|
|
+ // Spigot end
|
|
|
|
+
|
|
|
|
// Spigot start
|
2020-01-24 17:56:32 +11:00
|
|
|
public class Spigot {
|
|
|
|
|
2019-08-08 20:48:47 +10:00
|
|
|
--
|
2020-05-09 18:48:11 +10:00
|
|
|
2.25.1
|
2019-08-08 20:48:47 +10:00
|
|
|
|