mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
API to get client side view distance.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
667e7ba35e
commit
60183211fe
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user