diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 0c377ac318..83f74c9cd2 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -637,6 +637,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM */ public void sendMap(@NotNull MapView map); + /** + * Send a hurt animation. This fakes incoming damage towards the player from + * the given yaw relative to the player's direction. + * + * @param yaw the yaw in degrees relative to the player's direction where 0 + * is in front of the player, 90 is to the right, 180 is behind, and 270 is + * to the left + */ + public void sendHurtAnimation(float yaw); + /** * Add custom chat completion suggestions shown to the player while typing a * message.