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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final booleanstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptionstatic SoundReceiverof(org.bukkit.entity.Player player) static SoundReceiverof(org.bukkit.World world) voidplaySound(org.bukkit.entity.Entity entity, org.bukkit.NamespacedKey sound, org.bukkit.SoundCategory category, float volume, float pitch, OptionalLong seed) voidplaySound(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
-