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
FieldsModifier and TypeFieldDescriptionprivate final MessageSignatureThe field for thelastSignaturerecord component.private final UUIDThe field for theprofileIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(UUID profileId, MessageSignature lastSignature) Creates an instance of aEntryrecord class.Entry(FriendlyByteBuf p_242242_) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastSignaturerecord component.Returns the value of theprofileIdrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_242253_)
-
Field Details
-
profileId
The field for theprofileIdrecord component. -
lastSignature
The field for thelastSignaturerecord component.
-
-
Constructor Details
-
Entry
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
profileId- the value for theprofileIdrecord componentlastSignature- the value for thelastSignaturerecord 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 theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
lastSignature
Returns the value of thelastSignaturerecord component.- Returns:
- the value of the
lastSignaturerecord component
-