Expose LivingEntity hurt direction

This commit is contained in:
Mark Vainomaa
2020-12-13 05:32:12 +02:00
parent c120a1ea13
commit b71dfe682d
2 changed files with 28 additions and 0 deletions

View File

@@ -356,6 +356,16 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
*/
public void setCooldown(@NotNull Material material, int ticks);
// Paper start
/**
* Sets player hurt direction
*
* @param hurtDirection hurt direction
*/
@Override
void setHurtDirection(float hurtDirection);
// Paper end
/**
* Check whether a cooldown is active on the specified item.
*