mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Add Listing API for Player
This commit is contained in:
parent
86fffa917c
commit
3273a33a46
1 changed files with 26 additions and 0 deletions
|
@ -2078,6 +2078,32 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||||
*/
|
*/
|
||||||
public boolean canSee(@NotNull Entity entity);
|
public boolean canSee(@NotNull Entity entity);
|
||||||
|
|
||||||
|
// Paper start
|
||||||
|
/**
|
||||||
|
* Returns whether the {@code other} player is listed for {@code this}.
|
||||||
|
*
|
||||||
|
* @param other The other {@link Player} to check for listing.
|
||||||
|
* @return True if the {@code other} player is listed for {@code this}.
|
||||||
|
*/
|
||||||
|
boolean isListed(@NotNull Player other);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unlists the {@code other} player from the tablist.
|
||||||
|
*
|
||||||
|
* @param other The other {@link Player} to de-list.
|
||||||
|
* @return True if the {@code other} player was listed.
|
||||||
|
*/
|
||||||
|
boolean unlistPlayer(@NotNull Player other);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lists the {@code other} player.
|
||||||
|
*
|
||||||
|
* @param other The other {@link Player} to list.
|
||||||
|
* @return True if the {@code other} player was not listed.
|
||||||
|
*/
|
||||||
|
boolean listPlayer(@NotNull Player other);
|
||||||
|
// Paper end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if this player is currently flying or not.
|
* Checks to see if this player is currently flying or not.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue