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 official wa
intermediary net/minecraft/class_7826
named net/minecraft/network/message/MessageLink
official b
intermediary comp_1094
named index
official c
intermediary comp_1095
named sender
official d
intermediary comp_1096
named sessionId
-
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 official a
Lwa;a:Lcom/mojang/serialization/Codec;
intermediary field_40849
Lnet/minecraft/class_7826;field_40849:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/network/message/MessageLink;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MessageLink
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official a
Lwa;a(Ljava/util/UUID;)Lwa;
intermediary method_46319
Lnet/minecraft/class_7826;method_46319(Ljava/util/UUID;)Lnet/minecraft/class_7826;
named of
Lnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;
-
of
- Mappings:
Namespace Name Mixin selector official a
Lwa;a(Ljava/util/UUID;Ljava/util/UUID;)Lwa;
intermediary method_46320
Lnet/minecraft/class_7826;method_46320(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/class_7826;
named of
Lnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;
-
update
- Throws:
SignatureException
- Mappings:
Namespace Name Mixin selector official a
Lwa;a(Lavb$a;)V
intermediary method_46318
Lnet/minecraft/class_7826;method_46318(Lnet/minecraft/class_7498$class_7499;)V
named update
Lnet/minecraft/network/message/MessageLink;update(Lnet/minecraft/network/encryption/SignatureUpdatable$SignatureUpdater;)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 official a
Lwa;a(Lwa;)Z
intermediary method_46321
Lnet/minecraft/class_7826;method_46321(Lnet/minecraft/class_7826;)Z
named linksTo
Lnet/minecraft/network/message/MessageLink;linksTo(Lnet/minecraft/network/message/MessageLink;)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 official a
Lwa;a()Lwa;
intermediary method_46317
Lnet/minecraft/class_7826;method_46317()Lnet/minecraft/class_7826;
named next
Lnet/minecraft/network/message/MessageLink;next()Lnet/minecraft/network/message/MessageLink;
-
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
-