Entity Jump API
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user