mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 05:11:27 +01:00
#858: Add LivingEntity#playHurtAnimation()
By: Collin <collinjbarber@gmail.com>
This commit is contained in:
parent
cc8a890979
commit
cae67d1aad
@ -37,7 +37,10 @@ public enum EntityEffect {
|
|||||||
RABBIT_JUMP(1, Rabbit.class),
|
RABBIT_JUMP(1, Rabbit.class),
|
||||||
/**
|
/**
|
||||||
* When mobs get hurt.
|
* When mobs get hurt.
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link LivingEntity#playHurtAnimation(float)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
HURT(2, LivingEntity.class),
|
HURT(2, LivingEntity.class),
|
||||||
/**
|
/**
|
||||||
* When a mob dies.
|
* When a mob dies.
|
||||||
|
@ -547,6 +547,15 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|||||||
*/
|
*/
|
||||||
public void swingOffHand();
|
public void swingOffHand();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Makes this entity flash red as if they were damaged.
|
||||||
|
*
|
||||||
|
* @param yaw The direction the damage is coming from in relation to the
|
||||||
|
* entity, where 0 is in front of the player, 90 is to the right, 180 is
|
||||||
|
* behind, and 270 is to the left
|
||||||
|
*/
|
||||||
|
public void playHurtAnimation(float yaw);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set if this entity will be subject to collisions with other entities.
|
* Set if this entity will be subject to collisions with other entities.
|
||||||
* <p>
|
* <p>
|
||||||
|
Loading…
Reference in New Issue
Block a user