#749: Various javadoc improvements

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2022-06-05 10:05:54 +10:00
parent eafbc2ba3a
commit 5e9386f3e0
11 changed files with 59 additions and 26 deletions

View File

@@ -35,6 +35,12 @@ public class EntityToggleGlideEvent extends EntityEvent implements Cancellable {
this.cancel = cancel;
}
/**
* Returns true if the entity is now gliding or
* false if the entity stops gliding.
*
* @return new gliding state
*/
public boolean isGliding() {
return isGliding;
}

View File

@@ -29,6 +29,12 @@ public class EntityToggleSwimEvent extends EntityEvent implements Cancellable {
this.cancel = cancel;
}
/**
* Returns true if the entity is now swims or
* false if the entity stops swimming.
*
* @return new swimming state
*/
public boolean isSwimming() {
return isSwimming;
}