Package net.minecraft.network.chat
Record Class SignedMessageLink
java.lang.Object
java.lang.Record
net.minecraft.network.chat.SignedMessageLink
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SignedMessageLink>private final intThe field for theindexrecord component.private final UUIDThe field for thesenderrecord component.private final UUIDThe field for thesessionIdrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSignedMessageLink(int index, UUID sender, UUID sessionId) Creates an instance of aSignedMessageLinkrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionadvance()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanisDescendantOf(SignedMessageLink p_250977_) static SignedMessageLinksender()Returns the value of thesenderrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.static SignedMessageLinkvoidupdateSignature(SignatureUpdater.Output p_249261_) 
- 
Field Details- 
indexprivate final int indexThe field for theindexrecord component.
- 
senderThe field for thesenderrecord component.
- 
sessionIdThe field for thesessionIdrecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
SignedMessageLinkCreates an instance of aSignedMessageLinkrecord class.- Parameters:
- index- the value for the- indexrecord component
- sender- the value for the- senderrecord component
- sessionId- the value for the- sessionIdrecord component
 
 
- 
- 
Method Details- 
unsigned
- 
root
- 
updateSignature- Throws:
- SignatureException
 
- 
isDescendantOf
- 
advance
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
indexpublic int index()Returns the value of theindexrecord component.- Returns:
- the value of the indexrecord component
 
- 
senderReturns the value of thesenderrecord component.- Returns:
- the value of the senderrecord component
 
- 
sessionIdReturns the value of thesessionIdrecord component.- Returns:
- the value of the sessionIdrecord component
 
 
-