mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#834: Add Player#sendHurtAnimation()
This commit is contained in:
parent
9153f77e75
commit
0a2c4b4bb3
1 changed files with 10 additions and 0 deletions
|
@ -637,6 +637,16 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||||
*/
|
*/
|
||||||
public void sendMap(@NotNull MapView map);
|
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
|
* Add custom chat completion suggestions shown to the player while typing a
|
||||||
* message.
|
* message.
|
||||||
|
|
Loading…
Add table
Reference in a new issue