mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-26 19:09:44 -05:00
Implement SoundCategory for playing sounds.
By: LukBukkit <luk.bukkit@gmail.com>
This commit is contained in:
1 parent
853b05b6ab
commit
1396386f23
3 files changed
+75
No files matched your search
@@ -1155,6 +1155,34 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
||||
*/
|
||||
void playSound(Location location, String 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.
|
||||
*
|
||||
* @param location The location 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
|
||||
*/
|
||||
void playSound(Location location, Sound sound, SoundCategory category, 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 category the category of the sound
|
||||
* @param volume the volume of the sound
|
||||
* @param pitch the pitch of the sound
|
||||
*/
|
||||
void playSound(Location location, String sound, SoundCategory category, float volume, float pitch);
|
||||
|
||||
/**
|
||||
* Get existing rules
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user