Record Class AmbientSounds
java.lang.Object
java.lang.Record
net.minestom.server.world.attribute.AmbientSounds
public record AmbientSounds(@Nullable SoundEvent loop, @Nullable AmbientSounds.Mood mood, List<AmbientSounds.Additions> additions)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAmbientSounds(@Nullable SoundEvent loop, @Nullable AmbientSounds.Mood mood, List<AmbientSounds.Additions> additions) Creates an instance of aAmbientSoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.loop()Returns the value of thelooprecord component.mood()Returns the value of themoodrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
AmbientSounds
public AmbientSounds(@Nullable @Nullable SoundEvent loop, @Nullable @Nullable AmbientSounds.Mood mood, List<AmbientSounds.Additions> additions) Creates an instance of aAmbientSoundsrecord class.- Parameters:
loop- the value for thelooprecord componentmood- the value for themoodrecord componentadditions- the value for theadditionsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
loop
Returns the value of thelooprecord component.- Returns:
- the value of the
looprecord component
-
mood
Returns the value of themoodrecord component.- Returns:
- the value of the
moodrecord component
-
additions
Returns the value of theadditionsrecord component.- Returns:
- the value of the
additionsrecord component
-