Interface PlaySoundEvent.AtEntity
- All Superinterfaces:
Cancellable
,Event
,PlaySoundEvent
- Enclosing interface:
- PlaySoundEvent
Fired when a sound is played at a specific
Entity
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.sound.PlaySoundEvent
PlaySoundEvent.AtEntity, PlaySoundEvent.Broadcast, PlaySoundEvent.FromJukebox, PlaySoundEvent.NoteBlock
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.sound.PlaySoundEvent
location, pitch, soundSource, soundType, volume
-
Method Details
-
player
Optional<ServerPlayer> player()Gets theplayer
that this sound was played at, if the sound was played at a player.- Returns:
- The player, if applicable.
-