Package net.minecraft.network.chat
Record Class SignedMessageLink
java.lang.Object
java.lang.Record
net.minecraft.network.chat.SignedMessageLink
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionSignedMessageLink(int index, UUID sender, UUID sessionId) Creates an instance of aSignedMessageLinkrecord class. -
Method Summary
Modifier 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
-
index
private final int indexThe field for theindexrecord component. -
sender
The field for thesenderrecord component. -
sessionId
The field for thesessionIdrecord component. -
CODEC
-
-
Constructor Details
-
SignedMessageLink
Creates an instance of aSignedMessageLinkrecord class.- Parameters:
index- the value for theindexrecord componentsender- the value for thesenderrecord componentsessionId- the value for thesessionIdrecord component
-
-
Method Details
-
unsigned
-
root
-
updateSignature
- Throws:
SignatureException
-
isDescendantOf
-
advance
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-