diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index 8fdfa1d79d..40214a1368 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java @@ -286,6 +286,15 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder */ public void wakeup(boolean setSpawnLocation); + /** + * Make the player start a riptide spin attack. + * + * @param duration spin attack duration in ticks. + * @param attackStrength damage value inflicted upon entities hit by spin attack. + * @param attackItem item used to attack. + */ + public void startRiptideAttack(int duration, float attackStrength, @Nullable ItemStack attackItem); + /** * Gets the location of the bed the player is currently sleeping in * diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index 67115810d5..b5a302ba91 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -510,12 +510,22 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource public void setSwimming(boolean swimming); /** - * Checks to see if an entity is currently using the Riptide enchantment. + * Checks to see if an entity is currently riptiding. * * @return True if this entity is currently riptiding. */ public boolean isRiptiding(); + /** + * Makes entity start or stop riptiding. + *

+ * Note: This does not damage attackable entities. + * + * @param riptiding whether the entity should start riptiding. + * @see HumanEntity#startRiptideAttack(int, float, ItemStack) + */ + public void setRiptiding(boolean riptiding); + /** * Returns whether this entity is slumbering. *