public interface PlaySoundEvent extends Event, Cancellable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PlaySoundEvent.AtEntity
Fired when a sound is played at a specific
Entity |
static interface |
PlaySoundEvent.Broadcast
Fired when a sound is broadcasted to all
Players on the server. |
static interface |
PlaySoundEvent.NoteBlock
Fired when a noteblock is triggered
|
static interface |
PlaySoundEvent.Record
Fired when a record is inserted into a Jukebox
|
| Modifier and Type | Method and Description |
|---|---|
Location<World> |
getLocation()
Gets the location of the sound being played.
|
float |
getPitch()
Gets the pitch of the sound being played
|
SoundCategory |
getSoundCategory()
Gets the
SoundCategory for the sound being played. |
SoundType |
getSoundType()
Gets the
SoundType for the sound being played. |
float |
getVolume()
Gets the volume of the sound being played.
|
getCause, getContext, getSourceisCancelled, setCancelledLocation<World> getLocation()
SoundCategory getSoundCategory()
SoundCategory for the sound being played.SoundCategorySoundType getSoundType()
SoundType for the sound being played.SoundTypefloat getVolume()
float getPitch()