Package net.minecraft.client
Record Class GuiMessageTag
java.lang.Object
java.lang.Record
net.minecraft.client.GuiMessageTag
public record GuiMessageTag(int indicatorColor, @Nullable GuiMessageTag.Icon icon, @Nullable Component text, @Nullable String logTag)
extends Record
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final GuiMessageTagprivate static final Componentprivate static final intprivate static final Componentprivate static final GuiMessageTagprivate static final intprivate static final Componentprivate final GuiMessageTag.IconThe field for theiconrecord component.private final intThe field for theindicatorColorrecord component.private final StringThe field for thelogTagrecord component.private static final GuiMessageTagprivate static final GuiMessageTagprivate static final Componentprivate static final Componentprivate final ComponentThe field for thetextrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionGuiMessageTag(int indicatorColor, GuiMessageTag.Icon icon, Component text, String logTag) Creates an instance of aGuiMessageTagrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic GuiMessageTagstatic GuiMessageTagchatModified(String p_242878_) static GuiMessageTagfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.intReturns the value of theindicatorColorrecord component.logTag()Returns the value of thelogTagrecord component.static GuiMessageTagsystem()static GuiMessageTagtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
indicatorColorprivate final int indicatorColorThe field for theindicatorColorrecord component.
- 
iconThe field for theiconrecord component.
- 
textThe field for thetextrecord component.
- 
logTagThe field for thelogTagrecord component.
- 
SYSTEM_TEXT
- 
SYSTEM_TEXT_SINGLE_PLAYER
- 
CHAT_NOT_SECURE_TEXT
- 
CHAT_MODIFIED_TEXT
- 
CHAT_ERROR_TEXT
- 
CHAT_NOT_SECURE_INDICATOR_COLORprivate static final int CHAT_NOT_SECURE_INDICATOR_COLOR- See Also:
 
- 
CHAT_MODIFIED_INDICATOR_COLORprivate static final int CHAT_MODIFIED_INDICATOR_COLOR- See Also:
 
- 
SYSTEM
- 
SYSTEM_SINGLE_PLAYER
- 
CHAT_NOT_SECURE
- 
CHAT_ERROR
 
- 
- 
Constructor Details- 
GuiMessageTagpublic GuiMessageTag(int indicatorColor, @Nullable GuiMessageTag.Icon icon, @Nullable Component text, @Nullable String logTag) Creates an instance of aGuiMessageTagrecord class.- Parameters:
- indicatorColor- the value for the- indicatorColorrecord component
- icon- the value for the- iconrecord component
- text- the value for the- textrecord component
- logTag- the value for the- logTagrecord component
 
 
- 
- 
Method Details- 
system
- 
systemSinglePlayer
- 
chatNotSecure
- 
chatModified
- 
chatError
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
indicatorColorpublic int indicatorColor()Returns the value of theindicatorColorrecord component.- Returns:
- the value of the indicatorColorrecord component
 
- 
iconReturns the value of theiconrecord component.- Returns:
- the value of the iconrecord component
 
- 
textReturns the value of thetextrecord component.- Returns:
- the value of the textrecord component
 
- 
logTagReturns the value of thelogTagrecord component.- Returns:
- the value of the logTagrecord component
 
 
-