Package net.minecraft.client.gui.hud
Record Class ChatHud.MessageWithIndicator
java.lang.Object
java.lang.Record
net.minecraft.client.gui.hud.ChatHud.MessageWithIndicator
- Record Components:
message-indicator-
- Enclosing class:
ChatHud
@Environment(CLIENT)
private static record ChatHud.MessageWithIndicator(Text message, @Nullable MessageIndicator indicator)
extends Record
- Mappings:
Namespace Name official egu$aintermediary net/minecraft/class_338$class_7593named net/minecraft/client/gui/hud/ChatHud$MessageWithIndicatorofficial aintermediary comp_903named messageofficial bintermediary comp_904named indicator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessageWithIndicator(Text text, @Nullable MessageIndicator messageIndicator) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindicatorrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
MessageWithIndicator
MessageWithIndicator(Text text, @Nullable @Nullable MessageIndicator messageIndicator)
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
indicator
Returns the value of theindicatorrecord component.- Returns:
- the value of the
indicatorrecord component
-