mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
Added a playSound method to World which accepts a String parameter.
Similar to the respective method in Player. By: Lukas Hennig <lukas@wirsindwir.de>
This commit is contained in:
parent
30b43035e7
commit
b45872f434
1 changed files with 14 additions and 0 deletions
|
@ -1120,6 +1120,20 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|||
*/
|
||||
void playSound(Location location, Sound sound, float volume, float pitch);
|
||||
|
||||
/**
|
||||
* Play a Sound at the provided Location in the World.
|
||||
* <p>
|
||||
* This function will fail silently if Location or Sound are null. No
|
||||
* sound will be heard by the players if their clients do not have the
|
||||
* respective sound for the value passed.
|
||||
*
|
||||
* @param location the location to play the sound
|
||||
* @param sound the internal sound name to play
|
||||
* @param volume the volume of the sound
|
||||
* @param pitch the pitch of the sound
|
||||
*/
|
||||
void playSound(Location location, String sound, float volume, float pitch);
|
||||
|
||||
/**
|
||||
* Get existing rules
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue