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, Text text, String loggedName)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/hud/MessageIndicatorintermediary net/minecraft/class_7591official gdmnamed indicatorColorintermediary comp_899official anamed iconintermediary comp_900official bnamed textintermediary comp_901official cnamed loggedNameintermediary comp_902official d
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MessageIndicatorprivate static final Textprivate final MessageIndicator.IconThe field for theiconrecord component.private final intThe field for theindicatorColorrecord component.private final StringThe 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 Textprivate final TextThe field for thetextrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMessageIndicator(int indicatorColor, @Nullable MessageIndicator.Icon icon, @Nullable Text text, @Nullable String loggedName) Creates an instance of aMessageIndicatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageIndicatorfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable MessageIndicator.Iconicon()Returns the value of theiconrecord component.intReturns the value of theindicatorColorrecord component.@Nullable StringReturns the value of theloggedNamerecord component.static MessageIndicatorstatic MessageIndicatorstatic MessageIndicatorstatic MessageIndicatorsystem()@Nullable Texttext()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. -
loggedName
The field for theloggedNamerecord component. -
SYSTEM_TEXT
- Mappings:
Namespace Name Mixin selector named SYSTEM_TEXTLnet/minecraft/client/gui/hud/MessageIndicator;SYSTEM_TEXT:Lnet/minecraft/text/Text;intermediary field_40379Lnet/minecraft/class_7591;field_40379:Lnet/minecraft/class_2561;official eLgdm;e:Lyi;
-
SINGLE_PLAYER_TEXT
- Mappings:
Namespace Name Mixin selector named SINGLE_PLAYER_TEXTLnet/minecraft/client/gui/hud/MessageIndicator;SINGLE_PLAYER_TEXT:Lnet/minecraft/text/Text;intermediary field_41092Lnet/minecraft/class_7591;field_41092:Lnet/minecraft/class_2561;official fLgdm;f:Lyi;
-
NOT_SECURE_TEXT
- Mappings:
Namespace Name Mixin selector named NOT_SECURE_TEXTLnet/minecraft/client/gui/hud/MessageIndicator;NOT_SECURE_TEXT:Lnet/minecraft/text/Text;intermediary field_39756Lnet/minecraft/class_7591;field_39756:Lnet/minecraft/class_2561;official gLgdm;g:Lyi;
-
MODIFIED_TEXT
- Mappings:
Namespace Name Mixin selector named MODIFIED_TEXTLnet/minecraft/client/gui/hud/MessageIndicator;MODIFIED_TEXT:Lnet/minecraft/text/Text;intermediary field_39757Lnet/minecraft/class_7591;field_39757:Lnet/minecraft/class_2561;official hLgdm;h:Lyi;
-
ERROR_TEXT
- Mappings:
Namespace Name Mixin selector named ERROR_TEXTLnet/minecraft/client/gui/hud/MessageIndicator;ERROR_TEXT:Lnet/minecraft/text/Text;intermediary field_45897Lnet/minecraft/class_7591;field_45897:Lnet/minecraft/class_2561;official iLgdm;i:Lyi;
-
NOT_SECURE_COLOR
private static final int NOT_SECURE_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named NOT_SECURE_COLORLnet/minecraft/client/gui/hud/MessageIndicator;NOT_SECURE_COLOR:Iintermediary field_39758Lnet/minecraft/class_7591;field_39758:Iofficial jLgdm;j:I
-
MODIFIED_COLOR
private static final int MODIFIED_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector named MODIFIED_COLORLnet/minecraft/client/gui/hud/MessageIndicator;MODIFIED_COLOR:Iintermediary field_39759Lnet/minecraft/class_7591;field_39759:Iofficial kLgdm;k:I
-
SYSTEM
- Mappings:
Namespace Name Mixin selector named SYSTEMLnet/minecraft/client/gui/hud/MessageIndicator;SYSTEM:Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary field_39789Lnet/minecraft/class_7591;field_39789:Lnet/minecraft/class_7591;official lLgdm;l:Lgdm;
-
SINGLE_PLAYER
- Mappings:
Namespace Name Mixin selector named SINGLE_PLAYERLnet/minecraft/client/gui/hud/MessageIndicator;SINGLE_PLAYER:Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary field_41093Lnet/minecraft/class_7591;field_41093:Lnet/minecraft/class_7591;official mLgdm;m:Lgdm;
-
NOT_SECURE
- Mappings:
Namespace Name Mixin selector named NOT_SECURELnet/minecraft/client/gui/hud/MessageIndicator;NOT_SECURE:Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary field_39760Lnet/minecraft/class_7591;field_39760:Lnet/minecraft/class_7591;official nLgdm;n:Lgdm;
-
CHAT_ERROR
- Mappings:
Namespace Name Mixin selector named CHAT_ERRORLnet/minecraft/client/gui/hud/MessageIndicator;CHAT_ERROR:Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary field_45898Lnet/minecraft/class_7591;field_45898:Lnet/minecraft/class_7591;official oLgdm;o:Lgdm;
-
-
Constructor Details
-
MessageIndicator
public MessageIndicator(int indicatorColor, @Nullable MessageIndicator.Icon icon, @Nullable Text text, @Nullable String loggedName) Creates an instance of aMessageIndicatorrecord class.- Parameters:
indicatorColor- the value for theindicatorColorrecord componenticon- the value for theiconrecord componenttext- the value for thetextrecord componentloggedName- the value for theloggedNamerecord component
-
-
Method Details
-
system
- Mappings:
Namespace Name Mixin selector named systemLnet/minecraft/client/gui/hud/MessageIndicator;system()Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary method_44751Lnet/minecraft/class_7591;method_44751()Lnet/minecraft/class_7591;official aLgdm;a()Lgdm;
-
singlePlayer
- Mappings:
Namespace Name Mixin selector named singlePlayerLnet/minecraft/client/gui/hud/MessageIndicator;singlePlayer()Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary method_47391Lnet/minecraft/class_7591;method_47391()Lnet/minecraft/class_7591;official bLgdm;b()Lgdm;
-
notSecure
- Mappings:
Namespace Name Mixin selector named notSecureLnet/minecraft/client/gui/hud/MessageIndicator;notSecure()Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary method_44709Lnet/minecraft/class_7591;method_44709()Lnet/minecraft/class_7591;official cLgdm;c()Lgdm;
-
modified
- Mappings:
Namespace Name Mixin selector named modifiedLnet/minecraft/client/gui/hud/MessageIndicator;modified(Ljava/lang/String;)Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary method_44710Lnet/minecraft/class_7591;method_44710(Ljava/lang/String;)Lnet/minecraft/class_7591;official aLgdm;a(Ljava/lang/String;)Lgdm;
-
chatError
- Mappings:
Namespace Name Mixin selector named chatErrorLnet/minecraft/client/gui/hud/MessageIndicator;chatError()Lnet/minecraft/client/gui/hud/MessageIndicator;intermediary method_53461Lnet/minecraft/class_7591;method_53461()Lnet/minecraft/class_7591;official dLgdm;d()Lgdm;
-
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
-
loggedName
Returns the value of theloggedNamerecord component.- Returns:
- the value of the
loggedNamerecord component
-