Package ch.njol.skript.bukkitutil.sounds
Interface SoundReceiver
- All Known Implementing Classes:
SoundReceiver.PlayerSoundReceiver
,SoundReceiver.WorldSoundReceiver
public interface SoundReceiver
Adapter pattern to unify
World
and Player
playSound methods.
Methods can be called without determining version support, it is handled internally.
Non-supported methods will simply delegate to supported methods.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
static final boolean
static final boolean
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoundReceiver
of
(org.bukkit.entity.Player player) static SoundReceiver
of
(org.bukkit.World world) void
playSound
(org.bukkit.entity.Entity entity, org.bukkit.NamespacedKey sound, org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed) void
playSound
(org.bukkit.Location location, org.bukkit.NamespacedKey sound, org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed)
-
Field Details
-
ADVENTURE_API
static final boolean ADVENTURE_API -
SPIGOT_SOUND_SEED
static final boolean SPIGOT_SOUND_SEED -
ENTITY_EMITTER_SOUND
static final boolean ENTITY_EMITTER_SOUND -
ENTITY_EMITTER_STRING
static final boolean ENTITY_EMITTER_STRING
-
-
Method Details
-
playSound
void playSound(org.bukkit.Location location, org.bukkit.NamespacedKey sound, org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed) -
playSound
void playSound(org.bukkit.entity.Entity entity, org.bukkit.NamespacedKey sound, org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed) -
of
-
of
-