From 9d0221aa2959e79a315d7f87edd9d82e3ee7ce43 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 2 Nov 2018 21:24:09 +1100 Subject: API to get client side view distance. --- src/main/java/org/bukkit/entity/Player.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index c327bff3..a0401a3e 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/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. * -- cgit v1.2.3