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.Nested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AmbientSoundsstatic final ConstructWireProvider<AmbientSounds> -
Method Summary
Modifier and TypeMethodDescriptionGets the ambient additions settings.static AmbientSounds.Builderbuilder()Creates a new ambient sounds record builder.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.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Field Details
-
WIRE
-
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
-
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
-