Record Class BackgroundMusic
java.lang.Object
java.lang.Record
net.minestom.server.world.attribute.BackgroundMusic
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<BackgroundMusic> static final BackgroundMusicstatic final BackgroundMusic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreativeMusicrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.music()Returns the value of themusicrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunderwaterMusicrecord component.
-
Field Details
-
EMPTY
-
OVERWORLD
-
CODEC
-
-
Constructor Details
-
BackgroundMusic
public BackgroundMusic(@Nullable @Nullable Music music, @Nullable @Nullable Music creativeMusic, @Nullable @Nullable Music underwaterMusic) Creates an instance of aBackgroundMusicrecord class.- Parameters:
music- the value for themusicrecord componentcreativeMusic- the value for thecreativeMusicrecord componentunderwaterMusic- the value for theunderwaterMusicrecord 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). -
music
-
creativeMusic
-
underwaterMusic
-