#834: Add Player#sendHurtAnimation()

This commit is contained in:
Parker Hawke 2023-04-02 12:58:05 +10:00 committed by md_5
parent 9153f77e75
commit 0a2c4b4bb3
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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.