Record Class SignText
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.SignText
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SignText.SignTextBuilderbuilder()intcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable List<net.kyori.adventure.text.Component> Returns the value of thefilteredMessagesrecord component.booleanReturns the value of thehasGlowingTextrecord component.final inthashCode()Returns a hash code value for this object.List<net.kyori.adventure.text.Component> messages()Returns the value of themessagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SignText
public SignText(List<net.kyori.adventure.text.Component> messages, @Nullable List<net.kyori.adventure.text.Component> filteredMessages, int color, boolean hasGlowingText) Creates an instance of aSignTextrecord class.- Parameters:
messages- the value for themessagesrecord componentfilteredMessages- the value for thefilteredMessagesrecord componentcolor- the value for thecolorrecord componenthasGlowingText- the value for thehasGlowingTextrecord component
-
-
Method Details
-
builder
-
toBuilder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
filteredMessages
Returns the value of thefilteredMessagesrecord component.- Returns:
- the value of the
filteredMessagesrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
hasGlowingText
public boolean hasGlowingText()Returns the value of thehasGlowingTextrecord component.- Returns:
- the value of the
hasGlowingTextrecord component
-