Interface AmbientSounds
- All Superinterfaces:
Wrapper
Wraps a Minecraft AmbientSounds.
- Since:
- 2.4.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder for ambient sounds. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the ambient additions settings.static AmbientSounds.Builderbuilder()Creates a new ambient sounds record builder.static AmbientSoundsReads Minecraft ambient sounds into a wrapper.loop()Gets the loop sound event.mood()Gets the mood settings.static AmbientSoundsof(@Nullable SoundEvent loop, @Nullable AmbientMoodSettings mood, List<AmbientAdditionsSettings> additions) Creates a new ambient sounds record.default AmbientSounds.BuilderCreates a new builder with the same values as these ambient sounds.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
EMPTY
-
-
Method Details
-
loop
Gets the loop sound event.- Returns:
- the loop sound event, if present
- Since:
- 2.4.1
-
mood
Gets the mood settings.- Returns:
- the mood settings, if present
- Since:
- 2.4.1
-
additions
Gets the ambient additions settings.- Returns:
- the ambient additions settings
- Since:
- 2.4.1
-
toBuilder
Creates a new builder with the same values as these ambient sounds.- Returns:
- a new builder with the same values
- Since:
- 3.3.0
-
of
@AsOf("2.4.1") static AmbientSounds of(@Nullable SoundEvent loop, @Nullable AmbientMoodSettings mood, List<AmbientAdditionsSettings> additions) Creates a new ambient sounds record.- Parameters:
loop- the loop sound eventmood- the mood settingsadditions- the ambient additions settings- Returns:
- a new ambient sounds record
- Since:
- 2.4.1
-
builder
Creates a new ambient sounds record builder.- Returns:
- a new ambient sounds record builder
- Since:
- 2.4.1
-
decode
Reads Minecraft ambient sounds into a wrapper.- Parameters:
minecraftAmbientSounds- the ambient sounds to read- Returns:
- the wrapper for them
- Since:
- 3.3.0
-