Commits

Hex authored and md_5 committed 3120ea9ba70
Add Elytra Events.
No tags

src/main/java/org/bukkit/entity/LivingEntity.java

Modified
359 359 * Sets the leash on this entity to be held by the supplied entity.
360 360 * <p>
361 361 * This method has no effect on EnderDragons, Withers, Players, or Bats.
362 362 * Non-living entities excluding leashes will not persist as leash
363 363 * holders.
364 364 *
365 365 * @param holder the entity to leash this entity to
366 366 * @return whether the operation was successful
367 367 */
368 368 public boolean setLeashHolder(Entity holder);
369 +
370 + /**
371 + * Checks to see if an entity is gliding, such as using an Elytra.
372 + * @return True if this entity is gliding.
373 + */
374 + public boolean isGliding();
375 +
376 + /**
377 + * Makes entity start or stop gliding. This will work even if an Elytra
378 + * is not equipped, but will be reverted by the server immediately after
379 + * unless an event-cancelling mechanism is put in place.
380 + * @param gliding True if the entity is gliding.
381 + */
382 + public void setGliding(boolean gliding);
383 +
369 384 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut