Interface SoundEvent
Wraps a Minecraft SoundEvent.
- Since:
- 2.4.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the range of the sound event.static SoundEventfixedRange(ResourceKey location, float range) Creates a new sound event 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.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Field Details
-
WIRE
-
-
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
-