mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Add riptiding API
This commit is contained in:
parent
3d62c6bb95
commit
4bf4b3c772
1 changed files with 17 additions and 0 deletions
|
@ -516,6 +516,23 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|||
*/
|
||||
public boolean isRiptiding();
|
||||
|
||||
/**
|
||||
* Makes entity start or stop riptiding.
|
||||
* Note: This does not damage living entities.
|
||||
*
|
||||
* @param riptiding whether the entity should start riptiding.
|
||||
* @see #startRiptideAttack(int, float, ItemStack)
|
||||
*/
|
||||
public void setRiptiding(boolean riptiding);
|
||||
|
||||
/**
|
||||
* Makes the entity use their current item to start a riptide attack.
|
||||
* @param duration attack duration in ticks.
|
||||
* @param attackStrength attack strength
|
||||
* @param attackItem item used to attack.
|
||||
*/
|
||||
public void startRiptideAttack(int duration, float attackStrength, @Nullable ItemStack attackItem);
|
||||
|
||||
/**
|
||||
* Returns whether this entity is slumbering.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue