Add riptiding API

This commit is contained in:
ShreyasAyyengar 2024-08-29 18:07:13 +08:00
parent 3d62c6bb95
commit 4bf4b3c772

View file

@ -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.
*