Interface BukkitSoundEvent
- All Superinterfaces:
Keyed, SoundEvent, Wrapper
A sound event that is specific to a
Sound.- Since:
- 3.0.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic BukkitSoundEventfixedRange(Sound sound, float range) Creates a new BukkitSoundEvent with a fixed range.sound()TheSoundof the sound event.static BukkitSoundEventvariableRange(Sound sound) Creates a new BukkitSoundEvent from aSound.Methods inherited from interface SoundEvent
fixedRange, locationMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
sound
-
variableRange
Creates a new BukkitSoundEvent from aSound.- Parameters:
sound- the sound to create a BukkitSoundEvent from- Returns:
- a new BukkitSoundEvent from the given sound
- Since:
- 3.0.1
-
fixedRange
Creates a new BukkitSoundEvent with a fixed range.- Parameters:
sound- the sound to create a BukkitSoundEvent fromrange- the range of the sound event- Returns:
- a new BukkitSoundEvent with a fixed range
- Since:
- 3.0.1
-