Interface SoundEvent
- All Known Subinterfaces:
BukkitSoundEvent
Wraps a Minecraft SoundEvent.
- Since:
- 2.4.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoundEventReads a Minecraft sound event, or a holder of one, into a wrapper.Gets the range of the sound event.static SoundEventfixedRange(ResourceKey location, float range) Creates a new sound event with a fixed range.static SoundEventfixedRange(String key, float range) Creates a new sound event with a fixed range.static BukkitSoundEventfixedRange(Sound sound, float range) Creates a new BukkitSoundEvent with a fixed range.location()Gets the location of the sound event.static SoundEventvariableRange(ResourceKey location) Creates a new sound event with a variable range.static SoundEventvariableRange(String key) Creates a new sound event with a variable range.static BukkitSoundEventvariableRange(Sound sound) Creates a new BukkitSoundEvent with a variable range.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
location
Gets the location of the sound event.- Returns:
- the location of the sound event
- Since:
- 2.4.1
-
fixedRange
-
variableRange
Creates a new sound event with a variable range.- Parameters:
location- the location of the sound event- Returns:
- a new sound event with a variable range
- Since:
- 2.4.1
-
fixedRange
Creates a new sound event with a fixed range.- Parameters:
location- the location of the sound eventrange- the range of the sound event- Returns:
- a new sound event with a fixed range
- Since:
- 2.4.1
-
variableRange
Creates a new sound event with a variable range.- Parameters:
key- the key of the sound event- Returns:
- a new sound event with a variable range
- Since:
- 3.1.0
-
fixedRange
Creates a new sound event with a fixed range.- Parameters:
key- the key of the sound eventrange- the range of the sound event- Returns:
- a new sound event with a fixed range
- Since:
- 3.1.0
-
variableRange
Creates a new BukkitSoundEvent with a variable range.- Parameters:
sound- the sound event to create a BukkitSoundEvent from- Returns:
- a new BukkitSoundEvent with a variable range
- Since:
- 3.1.0
-
fixedRange
Creates a new BukkitSoundEvent with a fixed range.- Parameters:
sound- the sound event to create a BukkitSoundEvent fromrange- the range of the sound event- Returns:
- a new BukkitSoundEvent with a fixed range
- Since:
- 3.1.0
-
decode
Reads a Minecraft sound event, or a holder of one, into a wrapper.- Parameters:
minecraftSoundEvent- the sound event to read- Returns:
- the wrapper for it
- Since:
- 3.3.0
-