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
Modifier and TypeFieldDescriptionprivate final ChatSelectionScreen.ChatSelectionList.Entry
The field for theentry
record component.private final UUID
The field for thesender
record component. -
Constructor Summary
ConstructorDescriptionHeading
(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry) Creates an instance of aHeading
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
entry()
Returns the value of theentry
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.sender()
Returns the value of thesender
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sender
The field for thesender
record component. -
entry
The field for theentry
record component.
-
-
Constructor Details
-
Heading
Heading(UUID sender, ChatSelectionScreen.ChatSelectionList.Entry entry) Creates an instance of aHeading
record class.- Parameters:
sender
- the value for thesender
record componententry
- the value for theentry
record 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 thesender
record component.- Returns:
- the value of the
sender
record component
-
entry
Returns the value of theentry
record component.- Returns:
- the value of the
entry
record component
-