Record Class SignText
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.item.data.SignText
public record SignText(com.viaversion.nbt.tag.Tag[] messages, com.viaversion.nbt.tag.Tag @Nullable [] filteredMessages, int color, boolean hasGlowingText)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSignText(com.viaversion.nbt.tag.Tag[] messages, com.viaversion.nbt.tag.Tag @Nullable [] filteredMessages, int color, boolean hasGlowingText) Creates an instance of aSignTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.com.viaversion.nbt.tag.Tag @Nullable []Returns the value of thefilteredMessagesrecord component.booleanReturns the value of thehasGlowingTextrecord component.final inthashCode()Returns a hash code value for this object.com.viaversion.nbt.tag.Tag[]messages()Returns the value of themessagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
SignText
public SignText(com.viaversion.nbt.tag.Tag[] messages, com.viaversion.nbt.tag.Tag @Nullable [] 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
-
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
public com.viaversion.nbt.tag.Tag[] messages()Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
filteredMessages
public com.viaversion.nbt.tag.Tag @Nullable [] 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
-