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
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final GuiMessageTag
private static final Component
private static final int
private static final Component
private static final GuiMessageTag
private static final int
private static final Component
private final GuiMessageTag.Icon
The field for theicon
record component.private final int
The field for theindicatorColor
record component.private final String
The field for thelogTag
record component.private static final GuiMessageTag
private static final GuiMessageTag
private static final Component
private static final Component
private final Component
The field for thetext
record component. -
Constructor Summary
ConstructorDescriptionGuiMessageTag
(int indicatorColor, GuiMessageTag.Icon icon, Component text, String logTag) Creates an instance of aGuiMessageTag
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiMessageTag
static GuiMessageTag
chatModified
(String p_242878_) static GuiMessageTag
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.icon()
Returns the value of theicon
record component.int
Returns the value of theindicatorColor
record component.logTag()
Returns the value of thelogTag
record component.static GuiMessageTag
system()
static GuiMessageTag
text()
Returns the value of thetext
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
indicatorColor
private final int indicatorColorThe field for theindicatorColor
record component. -
icon
The field for theicon
record component. -
text
The field for thetext
record component. -
logTag
The field for thelogTag
record 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 aGuiMessageTag
record class.- Parameters:
indicatorColor
- the value for theindicatorColor
record componenticon
- the value for theicon
record componenttext
- the value for thetext
record componentlogTag
- the value for thelogTag
record 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 theindicatorColor
record component.- Returns:
- the value of the
indicatorColor
record component
-
icon
Returns the value of theicon
record component.- Returns:
- the value of the
icon
record component
-
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
logTag
Returns the value of thelogTag
record component.- Returns:
- the value of the
logTag
record component
-