mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
#834: Add Player#sendHurtAnimation()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
a0b5f71677
commit
fae6724a52
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user