Record Class JukeboxSong
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.JukeboxSong
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJukeboxSong(Sound soundEvent, net.kyori.adventure.text.Component description, float lengthInSeconds, int comparatorOutput) Creates an instance of aJukeboxSongrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull JukeboxSong.JukeboxSongBuilderbuilder()intReturns the value of thecomparatorOutputrecord component.net.kyori.adventure.text.ComponentReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelengthInSecondsrecord component.Returns the value of thesoundEventrecord component.@NonNull JukeboxSong.JukeboxSongBuilderfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JukeboxSong
public JukeboxSong(Sound soundEvent, net.kyori.adventure.text.Component description, float lengthInSeconds, int comparatorOutput) Creates an instance of aJukeboxSongrecord class.- Parameters:
soundEvent- the value for thesoundEventrecord componentdescription- the value for thedescriptionrecord componentlengthInSeconds- the value for thelengthInSecondsrecord componentcomparatorOutput- the value for thecomparatorOutputrecord component
-
-
Method Details
-
builder
-
toBuilder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
soundEvent
Returns the value of thesoundEventrecord component.- Returns:
- the value of the
soundEventrecord component
-
description
public net.kyori.adventure.text.Component description()Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
lengthInSeconds
public float lengthInSeconds()Returns the value of thelengthInSecondsrecord component.- Returns:
- the value of the
lengthInSecondsrecord component
-
comparatorOutput
public int comparatorOutput()Returns the value of thecomparatorOutputrecord component.- Returns:
- the value of the
comparatorOutputrecord component
-