diff options
author | md_5 <git@md-5.net> | 2018-11-02 21:24:09 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-11-02 21:24:09 +1100 |
commit | 9d0221aa2959e79a315d7f87edd9d82e3ee7ce43 (patch) | |
tree | b57d13c972c3a015f671e6fb01a54dbd3f7176e9 | |
parent | 9be7f0ea9669fe6ec5bde2ab754d8bf32185c125 (diff) | |
download | bukkit-9d0221aa2959e79a315d7f87edd9d82e3ee7ce43.tar bukkit-9d0221aa2959e79a315d7f87edd9d82e3ee7ce43.tar.gz bukkit-9d0221aa2959e79a315d7f87edd9d82e3ee7ce43.tar.lz bukkit-9d0221aa2959e79a315d7f87edd9d82e3ee7ce43.tar.xz bukkit-9d0221aa2959e79a315d7f87edd9d82e3ee7ce43.zip |
API to get client side view distance.
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -1462,6 +1462,18 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM public AdvancementProgress getAdvancementProgress(Advancement advancement); /** + * Get the player's current client side view distance. + * <br> + * 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. * * The value of the locale String is not defined properly. |