API to get client side view distance.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-11-02 21:24:09 +11:00
parent 667e7ba35e
commit 60183211fe

View File

@ -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.
* <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.
*