mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Added player.isFlying|setFlying to check if a player is flying, or make them fly/not. This implements BUKKIT-1281.
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
d45f940edb
commit
25f48c6372
1 changed files with 13 additions and 0 deletions
|
@ -501,4 +501,17 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
|||
*/
|
||||
public boolean canSee(Player player);
|
||||
|
||||
/**
|
||||
* Checks to see if this player is currently flying or not.
|
||||
*
|
||||
* @return True if the player is flying, else false.
|
||||
*/
|
||||
public boolean isFlying();
|
||||
|
||||
/**
|
||||
* Makes this player start or stop flying.
|
||||
*
|
||||
* @param value True to fly.
|
||||
*/
|
||||
public void setFlying(boolean value);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue