mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Expose LivingEntity hurt direction
This commit is contained in:
@@ -356,6 +356,16 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
|||||||
*/
|
*/
|
||||||
public void setCooldown(@NotNull Material material, int ticks);
|
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.
|
* Check whether a cooldown is active on the specified item.
|
||||||
*
|
*
|
||||||
|
@@ -1211,4 +1211,22 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|||||||
*/
|
*/
|
||||||
void playPickupItemAnimation(@NotNull Item item, int quantity);
|
void playPickupItemAnimation(@NotNull Item item, int quantity);
|
||||||
// Paper end - pickup animation API
|
// Paper end - pickup animation API
|
||||||
|
|
||||||
|
// Paper start - hurt direction API
|
||||||
|
/**
|
||||||
|
* Gets player hurt direction
|
||||||
|
*
|
||||||
|
* @return hurt direction
|
||||||
|
*/
|
||||||
|
float getHurtDirection();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets player hurt direction
|
||||||
|
*
|
||||||
|
* @param hurtDirection hurt direction
|
||||||
|
* @deprecated use {@link Player#setHurtDirection(float)}
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
void setHurtDirection(float hurtDirection);
|
||||||
|
// Paper end - hurt direction API
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user