mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
@@ -349,6 +349,31 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||
*/
|
||||
public void playSound(@NotNull Location location, @NotNull String sound, @NotNull SoundCategory category, float volume, float pitch);
|
||||
|
||||
/**
|
||||
* Play a sound for a player at the location of the entity.
|
||||
* <p>
|
||||
* This function will fail silently if Entity or Sound are null.
|
||||
*
|
||||
* @param entity The entity to play the sound
|
||||
* @param sound The sound to play
|
||||
* @param volume The volume of the sound
|
||||
* @param pitch The pitch of the sound
|
||||
*/
|
||||
public void playSound(@NotNull Entity entity, @NotNull Sound sound, float volume, float pitch);
|
||||
|
||||
/**
|
||||
* Play a sound for a player at the location of the entity.
|
||||
* <p>
|
||||
* This function will fail silently if Entity or Sound are null.
|
||||
*
|
||||
* @param entity The entity to play the sound
|
||||
* @param sound The sound to play
|
||||
* @param category The category of the sound
|
||||
* @param volume The volume of the sound
|
||||
* @param pitch The pitch of the sound
|
||||
*/
|
||||
public void playSound(@NotNull Entity entity, @NotNull Sound sound, @NotNull SoundCategory category, float volume, float pitch);
|
||||
|
||||
/**
|
||||
* Stop the specified sound from playing.
|
||||
*
|
||||
|
Reference in New Issue
Block a user