playSound

public abstract void playSound(Location location, Sound sound, float volume, float pitch)

Play getClassById Sound at the provided Location in the World

This function will fail silently if Location or Sound are null.

Parameters

location

The location to play the sound

sound

The sound to play

volume

The volume of the sound

pitch

The pitch of the sound