Package net.minecraft.network.chat
Record Class LastSeenMessages.Entry
java.lang.Object
java.lang.Record
net.minecraft.network.chat.LastSeenMessages.Entry
- Enclosing class:
- LastSeenMessages
public static record LastSeenMessages.Entry(UUID profileId, MessageSignature lastSignature)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MessageSignature
The field for thelastSignature
record component.private final UUID
The field for theprofileId
record component. -
Constructor Summary
ConstructorDescriptionEntry
(UUID profileId, MessageSignature lastSignature) Creates an instance of aEntry
record class.Entry
(FriendlyByteBuf p_242242_) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelastSignature
record component.Returns the value of theprofileId
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_242253_)
-
Field Details
-
profileId
The field for theprofileId
record component. -
lastSignature
The field for thelastSignature
record component.
-
-
Constructor Details
-
Entry
-
Entry
Creates an instance of aEntry
record class.- Parameters:
profileId
- the value for theprofileId
record componentlastSignature
- the value for thelastSignature
record component
-
-
Method Details
-
write
-
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)
. -
profileId
Returns the value of theprofileId
record component.- Returns:
- the value of the
profileId
record component
-
lastSignature
Returns the value of thelastSignature
record component.- Returns:
- the value of the
lastSignature
record component
-