SPIGOT-1571: Add Entity Glide Events.

By: 0x277F <0x277F@gmail.com>
This commit is contained in:
Bukkit/Spigot
2016-03-09 20:14:05 -07:00
parent 2fe89bac6f
commit 8c8383109a
2 changed files with 65 additions and 0 deletions

View File

@@ -366,4 +366,19 @@ public interface LivingEntity extends Attributable, Entity, Damageable, Projecti
* @return whether the operation was successful
*/
public boolean setLeashHolder(Entity holder);
/**
* Checks to see if an entity is gliding, such as using an Elytra.
* @return True if this entity is gliding.
*/
public boolean isGliding();
/**
* Makes entity start or stop gliding. This will work even if an Elytra
* is not equipped, but will be reverted by the server immediately after
* unless an event-cancelling mechanism is put in place.
* @param gliding True if the entity is gliding.
*/
public void setGliding(boolean gliding);
}