Entity Jump API

This commit is contained in:
BillyGalbreath
2020-02-08 23:26:18 -06:00
parent 599bf3512d
commit fbcf4759fb
2 changed files with 72 additions and 0 deletions

View File

@@ -1159,4 +1159,26 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
return this.getActiveItemHand();
}
// Paper end - active item API
// Paper start - entity jump API
/**
* Get entity jump state.
* <p>
* Jump state will be true when the entity has been marked to jump.
*
* @return entity jump state.
*/
boolean isJumping();
/**
* Set entity jump state
* <p>
* Setting to true will mark the entity to jump.
* <p>
* Setting to false will unmark the entity to jump but will not stop a jump already in-progress.
*
* @param jumping entity jump state
*/
void setJumping(boolean jumping);
// Paper end - entity jump API
}