Record Class ChatSelectionScreen.ChatSelectionList.Heading
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screens.reporting.ChatSelectionScreen.ChatSelectionList.Heading
- Enclosing class:
ChatSelectionScreen.ChatSelectionList
private 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
ConstructorsModifierConstructorDescriptionprivateHeading(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
Creates an instance of aHeadingrecord class.- Parameters:
sender- the value for thesenderrecord componententry- the value for theentryrecord component
-
-
Method Details
-
canCombine
-
toString
-
hashCode
-
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
-