mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-04-13 09:41:09 +00:00
Distinguish riptiding API.
This commit is contained in:
parent
4bf4b3c772
commit
9876931f49
2 changed files with 12 additions and 11 deletions
|
@ -286,6 +286,14 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
|||
*/
|
||||
public void wakeup(boolean setSpawnLocation);
|
||||
|
||||
/**
|
||||
* Make the player start a riptide spin 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);
|
||||
|
||||
/**
|
||||
* Gets the location of the bed the player is currently sleeping in
|
||||
*
|
||||
|
|
|
@ -510,7 +510,7 @@ 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.
|
||||
*/
|
||||
|
@ -518,21 +518,14 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|||
|
||||
/**
|
||||
* Makes entity start or stop riptiding.
|
||||
* Note: This does not damage living entities.
|
||||
* <p>
|
||||
* Note: This does not damage attackable entities.
|
||||
*
|
||||
* @param riptiding whether the entity should start riptiding.
|
||||
* @see #startRiptideAttack(int, float, ItemStack)
|
||||
* @see HumanEntity#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