From ce1f2063160ea2ba657a23eb9da87712cac7759f Mon Sep 17 00:00:00 2001
From: Bukkit/Spigot <noreply+git-bukkit@papermc.io>
Date: Sat, 23 Dec 2023 14:32:33 +1100
Subject: [PATCH] Add API for per-world view distances

Adapted from Spigot commit ea7e48b3e6d973551afe440a8cbc6d96a49d10fc.

By: Spottedleaf <Spottedleaf@users.noreply.github.com>
---
 paper-api/src/main/java/org/bukkit/World.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java
index 16feb5ef2f..118bc85e75 100644
--- a/paper-api/src/main/java/org/bukkit/World.java
+++ b/paper-api/src/main/java/org/bukkit/World.java
@@ -1536,6 +1536,13 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
     @NotNull
     public Difficulty getDifficulty();
 
+    /**
+     * Returns the view distance used for this world.
+     *
+     * @return the view distance used for this world
+     */
+    int getViewDistance();
+
     /**
      * Gets the folder of this world on disk.
      *