Package net.minecraft.network.message
Record Class MessageLink
java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageLink
- Record Components:
index
-sender
-sessionId
-
Represents a link to the preceding message that a particular message has.
- Mappings:
Namespace Name named net/minecraft/network/message/MessageLink
intermediary net/minecraft/class_7826
official yk
named index
intermediary comp_1094
official b
named sender
intermediary comp_1095
official c
named sessionId
intermediary comp_1096
official d
-
Field Summary
-
Constructor Summary
-
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.int
index()
Returns the value of theindex
record component.boolean
linksTo
(MessageLink preceding) Returns whether this link links to thepreceding
link.next()
Returns the next link used by the message's succeeding message.static MessageLink
static MessageLink
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.void
-
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
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/message/MessageLink;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_40849
Lnet/minecraft/class_7826;field_40849:Lcom/mojang/serialization/Codec;
official a
Lyk;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MessageLink
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;
intermediary method_46319
Lnet/minecraft/class_7826;method_46319(Ljava/util/UUID;)Lnet/minecraft/class_7826;
official a
Lyk;a(Ljava/util/UUID;)Lyk;
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;
intermediary method_46320
Lnet/minecraft/class_7826;method_46320(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/class_7826;
official a
Lyk;a(Ljava/util/UUID;Ljava/util/UUID;)Lyk;
-
update
- Throws:
SignatureException
- Mappings:
Namespace Name Mixin selector named update
Lnet/minecraft/network/message/MessageLink;update(Lnet/minecraft/network/encryption/SignatureUpdatable$SignatureUpdater;)V
intermediary method_46318
Lnet/minecraft/class_7826;method_46318(Lnet/minecraft/class_7498$class_7499;)V
official a
Lyk;a(Lazl$a;)V
-
linksTo
Returns whether this link links to thepreceding
link.For the link to be considered valid, the two must have the same sender and session ID, and the newer link's index must be above the preceding link's index.
- Returns:
- whether this link links to the
preceding
link - Mappings:
Namespace Name Mixin selector named linksTo
Lnet/minecraft/network/message/MessageLink;linksTo(Lnet/minecraft/network/message/MessageLink;)Z
intermediary method_46321
Lnet/minecraft/class_7826;method_46321(Lnet/minecraft/class_7826;)Z
official a
Lyk;a(Lyk;)Z
-
next
Returns the next link used by the message's succeeding message.This can return
null
in an extremely rare case, where the index is about to overflow.- Returns:
- the next link used by the message's succeeding message
- Mappings:
Namespace Name Mixin selector named next
Lnet/minecraft/network/message/MessageLink;next()Lnet/minecraft/network/message/MessageLink;
intermediary method_46317
Lnet/minecraft/class_7826;method_46317()Lnet/minecraft/class_7826;
official a
Lyk;a()Lyk;
-
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
-