Package net.minecraft.network.chat
Record Class SignedMessageLink
java.lang.Object
java.lang.Record
net.minecraft.network.chat.SignedMessageLink
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<SignedMessageLink> private final int
The field for theindex
record component.private final UUID
The field for thesender
record component.private final UUID
The field for thesessionId
record component. -
Constructor Summary
ConstructorDescriptionSignedMessageLink
(int index, UUID sender, UUID sessionId) Creates an instance of aSignedMessageLink
record class. -
Method Summary
Modifier and TypeMethodDescriptionadvance()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.boolean
isDescendantOf
(SignedMessageLink p_250977_) static SignedMessageLink
sender()
Returns the value of thesender
record component.Returns the value of thesessionId
record component.final String
toString()
Returns a string representation of this record class.static SignedMessageLink
void
updateSignature
(SignatureUpdater.Output p_249261_)
-
Field Details
-
index
private final int indexThe field for theindex
record component. -
sender
The field for thesender
record component. -
sessionId
The field for thesessionId
record component. -
CODEC
-
-
Constructor Details
-
SignedMessageLink
Creates an instance of aSignedMessageLink
record class.- Parameters:
index
- the value for theindex
record componentsender
- the value for thesender
record componentsessionId
- the value for thesessionId
record 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 theindex
record component.- Returns:
- the value of the
index
record component
-
sender
Returns the value of thesender
record component.- Returns:
- the value of the
sender
record component
-
sessionId
Returns the value of thesessionId
record component.- Returns:
- the value of the
sessionId
record component
-