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.
  • 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

      static SoundReceiver of(org.bukkit.entity.Player player)
    • of

      static SoundReceiver of(org.bukkit.World world)