diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 0d0e7f4d..b06edc47 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -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); } |