Package net.minecraft.client.gui.hud
Record Class MessageIndicator
java.lang.Object
java.lang.Record
net.minecraft.client.gui.hud.MessageIndicator
- Record Components:
- indicatorColor-
- icon-
- text-
- loggedName-
@Environment(CLIENT)
public record MessageIndicator(int indicatorColor, MessageIndicator.Icon icon, @Nullable Text text, @Nullable String loggedName)
extends Record
- Mappings:
- Namespace - Name - official - eni- intermediary - net/minecraft/class_7591- named - net/minecraft/client/gui/hud/MessageIndicator- official - a- intermediary - comp_899- named - indicatorColor- official - b- intermediary - comp_900- named - icon- official - c- intermediary - comp_901- named - text- official - d- intermediary - comp_902- named - loggedName
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final Identifierprivate final MessageIndicator.IconThe field for theiconrecord component.private final intThe field for theindicatorColorrecord component.The field for theloggedNamerecord component.private static final intprivate static final Textprivate static final MessageIndicatorprivate static final intprivate static final Textprivate static final MessageIndicatorprivate static final Textprivate static final MessageIndicatorprivate static final TextThe field for thetextrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMessageIndicator(int int2, @Nullable MessageIndicator.Icon icon, @Nullable Text text, @Nullable String string) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal 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.Returns the value of theloggedNamerecord component.static MessageIndicatorstatic MessageIndicatorstatic MessageIndicatorstatic MessageIndicatorsystem()text()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.
- 
loggedNameThe field for theloggedNamerecord component.
- 
SYSTEM_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - e- Leni;e:Lsw;- intermediary - field_40379- Lnet/minecraft/class_7591;field_40379:Lnet/minecraft/class_2561;- named - SYSTEM_TEXT- Lnet/minecraft/client/gui/hud/MessageIndicator;SYSTEM_TEXT:Lnet/minecraft/text/Text;
 
- 
SINGLE_PLAYER_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - f- Leni;f:Lsw;- intermediary - field_41092- Lnet/minecraft/class_7591;field_41092:Lnet/minecraft/class_2561;- named - SINGLE_PLAYER_TEXT- Lnet/minecraft/client/gui/hud/MessageIndicator;SINGLE_PLAYER_TEXT:Lnet/minecraft/text/Text;
 
- 
NOT_SECURE_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - g- Leni;g:Lsw;- intermediary - field_39756- Lnet/minecraft/class_7591;field_39756:Lnet/minecraft/class_2561;- named - NOT_SECURE_TEXT- Lnet/minecraft/client/gui/hud/MessageIndicator;NOT_SECURE_TEXT:Lnet/minecraft/text/Text;
 
- 
MODIFIED_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - h- Leni;h:Lsw;- intermediary - field_39757- Lnet/minecraft/class_7591;field_39757:Lnet/minecraft/class_2561;- named - MODIFIED_TEXT- Lnet/minecraft/client/gui/hud/MessageIndicator;MODIFIED_TEXT:Lnet/minecraft/text/Text;
 
- 
NOT_SECURE_COLORprivate static final int NOT_SECURE_COLOR- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Leni;i:I- intermediary - field_39758- Lnet/minecraft/class_7591;field_39758:I- named - NOT_SECURE_COLOR- Lnet/minecraft/client/gui/hud/MessageIndicator;NOT_SECURE_COLOR:I
 
- 
MODIFIED_COLORprivate static final int MODIFIED_COLOR- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - j- Leni;j:I- intermediary - field_39759- Lnet/minecraft/class_7591;field_39759:I- named - MODIFIED_COLOR- Lnet/minecraft/client/gui/hud/MessageIndicator;MODIFIED_COLOR:I
 
- 
SYSTEM- Mappings:
- Namespace - Name - Mixin selector - official - k- Leni;k:Leni;- intermediary - field_39789- Lnet/minecraft/class_7591;field_39789:Lnet/minecraft/class_7591;- named - SYSTEM- Lnet/minecraft/client/gui/hud/MessageIndicator;SYSTEM:Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
SINGLE_PLAYER- Mappings:
- Namespace - Name - Mixin selector - official - l- Leni;l:Leni;- intermediary - field_41093- Lnet/minecraft/class_7591;field_41093:Lnet/minecraft/class_7591;- named - SINGLE_PLAYER- Lnet/minecraft/client/gui/hud/MessageIndicator;SINGLE_PLAYER:Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
NOT_SECURE- Mappings:
- Namespace - Name - Mixin selector - official - m- Leni;m:Leni;- intermediary - field_39760- Lnet/minecraft/class_7591;field_39760:Lnet/minecraft/class_7591;- named - NOT_SECURE- Lnet/minecraft/client/gui/hud/MessageIndicator;NOT_SECURE:Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
CHAT_TAGS_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - official - n- Leni;n:Lacq;- intermediary - field_39761- Lnet/minecraft/class_7591;field_39761:Lnet/minecraft/class_2960;- named - CHAT_TAGS_TEXTURE- Lnet/minecraft/client/gui/hud/MessageIndicator;CHAT_TAGS_TEXTURE:Lnet/minecraft/util/Identifier;
 
 
- 
- 
Constructor Details- 
MessageIndicator
 
- 
- 
Method Details- 
system- Mappings:
- Namespace - Name - Mixin selector - official - a- Leni;a()Leni;- intermediary - method_44751- Lnet/minecraft/class_7591;method_44751()Lnet/minecraft/class_7591;- named - system- Lnet/minecraft/client/gui/hud/MessageIndicator;system()Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
singlePlayer- Mappings:
- Namespace - Name - Mixin selector - official - b- Leni;b()Leni;- intermediary - method_47391- Lnet/minecraft/class_7591;method_47391()Lnet/minecraft/class_7591;- named - singlePlayer- Lnet/minecraft/client/gui/hud/MessageIndicator;singlePlayer()Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
notSecure- Mappings:
- Namespace - Name - Mixin selector - official - c- Leni;c()Leni;- intermediary - method_44709- Lnet/minecraft/class_7591;method_44709()Lnet/minecraft/class_7591;- named - notSecure- Lnet/minecraft/client/gui/hud/MessageIndicator;notSecure()Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
modified- Mappings:
- Namespace - Name - Mixin selector - official - a- Leni;a(Ljava/lang/String;)Leni;- intermediary - method_44710- Lnet/minecraft/class_7591;method_44710(Ljava/lang/String;)Lnet/minecraft/class_7591;- named - modified- Lnet/minecraft/client/gui/hud/MessageIndicator;modified(Ljava/lang/String;)Lnet/minecraft/client/gui/hud/MessageIndicator;
 
- 
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
 
- 
loggedNameReturns the value of theloggedNamerecord component.- Returns:
- the value of the loggedNamerecord component
 
 
-