Record Class ChatSelectionScreen.ChatSelectionList.Heading
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screens.reporting.ChatSelectionScreen.ChatSelectionList.Heading
- Enclosing class:
- ChatSelectionScreen.ChatSelectionList
static record ChatSelectionScreen.ChatSelectionList.Heading(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatSelectionScreen.ChatSelectionList.EntryThe field for theentryrecord component.private final UUIDThe field for thesenderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHeading(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry) Creates an instance of aHeadingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sender
The field for thesenderrecord component. -
entry
The field for theentryrecord component.
-
-
Constructor Details
-
Heading
Heading(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry) Creates an instance of aHeadingrecord class.- Parameters:
sender- the value for thesenderrecord componententry- the value for theentryrecord component
-
-
Method Details
-
canCombine
-
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). -
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-