mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-08-31 21:49:13 +00:00
30 lines
988 B
Diff
30 lines
988 B
Diff
From 768442ec210803805258af5b4f66ce8913b9ebc7 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 8c456aea..d599c5ec 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -2059,6 +2059,15 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
@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
|
|
public class Spigot
|
|
{
|
|
--
|
|
2.20.1
|
|
|