Package ch.njol.skript.bukkitutil
Interface AdventureSoundReceiver<T,E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A utility interface to access the Player::playSound while also providing the same arguments to World::playSound
Used in EffPlaySound. Separated due to static versioning.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
E> void play
(@NotNull AdventureSoundReceiver.AdventureEmitterSoundReceiver<T> adventureLocationReceiver, @NotNull AdventureSoundReceiver.AdventureEntitySoundReceiver<T> adventureEmitterReceiver, T receiver, E emitter, @NotNull String[] sounds, @NotNull org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed) void
play
(T receiver, E emitter, @NotNull String sound, @NotNull org.bukkit.SoundCategory category, float volume, float pitch)
-
Method Details
-
play
-
play
static <T,E> void play(@NotNull @NotNull AdventureSoundReceiver.AdventureEmitterSoundReceiver<T> adventureLocationReceiver, @NotNull @NotNull AdventureSoundReceiver.AdventureEntitySoundReceiver<T> adventureEmitterReceiver, @NotNull T receiver, @NotNull E emitter, @NotNull @NotNull String[] sounds, @NotNull @NotNull org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed)
-