Interface BukkitSoundEvent

All Superinterfaces:
Keyed, SoundEvent, Wrapper

@NullMarked @AsOf("3.0.1") public interface BukkitSoundEvent extends SoundEvent
A sound event that is specific to a Sound.
Since:
3.0.1
  • Method Details

    • sound

      @AsOf("3.0.1") Sound sound()
      The Sound of the sound event.
      Returns:
      the sound of the sound event
      Since:
      3.0.1
    • variableRange

      @AsOf("3.0.1") static BukkitSoundEvent variableRange(Sound sound)
      Creates a new BukkitSoundEvent from a Sound.
      Parameters:
      sound - the sound to create a BukkitSoundEvent from
      Returns:
      a new BukkitSoundEvent from the given sound
      Since:
      3.0.1
    • fixedRange

      @AsOf("3.0.1") static BukkitSoundEvent fixedRange(Sound sound, float range)
      Creates a new BukkitSoundEvent with a fixed range.
      Parameters:
      sound - the sound to create a BukkitSoundEvent from
      range - the range of the sound event
      Returns:
      a new BukkitSoundEvent with a fixed range
      Since:
      3.0.1