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 SummaryFieldsModifier and TypeFieldDescriptionprivate final ChatSelectionScreen.ChatSelectionList.EntryThe field for theentryrecord component.private final UUIDThe field for thesenderrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionHeading(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry) Creates an instance of aHeadingrecord class.
- 
Method SummaryModifier 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- 
senderThe field for thesenderrecord component.
- 
entryThe field for theentryrecord component.
 
- 
- 
Constructor Details- 
HeadingHeading(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry) Creates an instance of aHeadingrecord class.- Parameters:
- sender- the value for the- senderrecord component
- entry- the value for the- entryrecord component
 
 
- 
- 
Method Details- 
canCombine
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
senderReturns the value of thesenderrecord component.- Returns:
- the value of the senderrecord component
 
- 
entryReturns the value of theentryrecord component.- Returns:
- the value of the entryrecord component
 
 
-