2022-06-12 18:29:19 +10:00
|
|
|
From 3c22f2e6dc167083159fa7ecc65e74ee69f11d2e 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
|
2022-06-08 02:00:00 +10:00
|
|
|
index e2a116ce..9fa83c72 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
|
2022-02-15 09:43:12 +11:00
|
|
|
@@ -2573,6 +2573,22 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
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();
|
2021-11-22 09:00:00 +11:00
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Returns the simulation distance used for this world.
|
|
|
|
+ *
|
|
|
|
+ * @return the simulation distance used for this world
|
|
|
|
+ */
|
|
|
|
+ int getSimulationDistance();
|
2019-08-08 20:48:47 +10:00
|
|
|
+ // Spigot end
|
|
|
|
+
|
|
|
|
// Spigot start
|
2020-01-24 17:56:32 +11:00
|
|
|
public class Spigot {
|
|
|
|
|
2019-08-08 20:48:47 +10:00
|
|
|
--
|
2022-06-12 18:29:19 +10:00
|
|
|
2.34.1
|
2019-08-08 20:48:47 +10:00
|
|
|
|