From 60183211fe49ebbc75994d2fd3775e7a53be9b53 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Nov 2018 21:24:09 +1100 Subject: [PATCH] API to get client side view distance. By: md_5 --- .../src/main/java/org/bukkit/entity/Player.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index c327bff396..a0401a3e21 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -1461,6 +1461,18 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM */ public AdvancementProgress getAdvancementProgress(Advancement advancement); + /** + * Get the player's current client side view distance. + *
+ * Will default to the server view distance if the client has not yet + * communicated this information, + * + * @return client view distance as above + * @deprecated draft API + */ + @Deprecated + public int getClientViewDistance(); + /** * Gets the player's current locale. *