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 Summary
Nested Classes -
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionGuiMessageTag(int indicatorColor, GuiMessageTag.Icon icon, Component text, String logTag) Creates an instance of aGuiMessageTagrecord class. -
Method Summary
Modifier 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
-
indicatorColor
private final int indicatorColorThe field for theindicatorColorrecord component. -
icon
The field for theiconrecord component. -
text
The field for thetextrecord component. -
logTag
The field for thelogTagrecord component. -
SYSTEM_TEXT
-
SYSTEM_TEXT_SINGLE_PLAYER
-
CHAT_NOT_SECURE_TEXT
-
CHAT_MODIFIED_TEXT
-
CHAT_ERROR_TEXT
-
CHAT_NOT_SECURE_INDICATOR_COLOR
private static final int CHAT_NOT_SECURE_INDICATOR_COLOR- See Also:
-
CHAT_MODIFIED_INDICATOR_COLOR
private static final int CHAT_MODIFIED_INDICATOR_COLOR- See Also:
-
SYSTEM
-
SYSTEM_SINGLE_PLAYER
-
CHAT_NOT_SECURE
-
CHAT_ERROR
-
-
Constructor Details
-
GuiMessageTag
public GuiMessageTag(int indicatorColor, @Nullable GuiMessageTag.Icon icon, @Nullable Component text, @Nullable String logTag) Creates an instance of aGuiMessageTagrecord class.- Parameters:
indicatorColor- the value for theindicatorColorrecord componenticon- the value for theiconrecord componenttext- the value for thetextrecord componentlogTag- the value for thelogTagrecord component
-
-
Method Details
-
system
-
systemSinglePlayer
-
chatNotSecure
-
chatModified
-
chatError
-
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 '=='. -
indicatorColor
public int indicatorColor()Returns the value of theindicatorColorrecord component.- Returns:
- the value of the
indicatorColorrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
logTag
Returns the value of thelogTagrecord component.- Returns:
- the value of the
logTagrecord component
-