Interface PlaySoundEvent.AtEntity
- 
- All Superinterfaces:
 Cancellable,Event,PlaySoundEvent
- Enclosing interface:
 - PlaySoundEvent
 
public static interface PlaySoundEvent.AtEntity extends PlaySoundEvent
Fired when a sound is played at a specificEntity 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.spongepowered.api.event.sound.PlaySoundEvent
PlaySoundEvent.AtEntity, PlaySoundEvent.Broadcast, PlaySoundEvent.NoteBlock, PlaySoundEvent.Record 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ServerPlayer>player()Gets theplayerthat this sound was played at, if the sound was played at a player.- 
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 Detail
- 
player
Optional<ServerPlayer> player()
Gets theplayerthat this sound was played at, if the sound was played at a player.- Returns:
 - The player, if applicable.
 
 
 - 
 
 -