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/MessageLinkintermediary net/minecraft/class_7826official xunamed indexintermediary comp_1094official bnamed senderintermediary comp_1095official cnamed sessionIdintermediary comp_1096official d
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.booleanlinksTo(MessageLink preceding) Returns whether this link links to theprecedinglink.next()Returns the next link used by the message's succeeding message.static MessageLinkstatic MessageLinksender()Returns the value of thesenderrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.void
-
Field Details
-
index
private final int indexThe field for theindexrecord component. -
sender
The field for thesenderrecord component. -
sessionId
The field for thesessionIdrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/network/message/MessageLink;CODEC:Lcom/mojang/serialization/Codec;intermediary field_40849Lnet/minecraft/class_7826;field_40849:Lcom/mojang/serialization/Codec;official aLxu;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MessageLink
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;intermediary method_46319Lnet/minecraft/class_7826;method_46319(Ljava/util/UUID;)Lnet/minecraft/class_7826;official aLxu;a(Ljava/util/UUID;)Lxu;
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;intermediary method_46320Lnet/minecraft/class_7826;method_46320(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/class_7826;official aLxu;a(Ljava/util/UUID;Ljava/util/UUID;)Lxu;
-
update
- Throws:
SignatureException- Mappings:
Namespace Name Mixin selector named updateLnet/minecraft/network/message/MessageLink;update(Lnet/minecraft/network/encryption/SignatureUpdatable$SignatureUpdater;)Vintermediary method_46318Lnet/minecraft/class_7826;method_46318(Lnet/minecraft/class_7498$class_7499;)Vofficial aLxu;a(Laza$a;)V
-
linksTo
Returns whether this link links to theprecedinglink.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
precedinglink - Mappings:
Namespace Name Mixin selector named linksToLnet/minecraft/network/message/MessageLink;linksTo(Lnet/minecraft/network/message/MessageLink;)Zintermediary method_46321Lnet/minecraft/class_7826;method_46321(Lnet/minecraft/class_7826;)Zofficial aLxu;a(Lxu;)Z
-
next
Returns the next link used by the message's succeeding message.This can return
nullin 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 nextLnet/minecraft/network/message/MessageLink;next()Lnet/minecraft/network/message/MessageLink;intermediary method_46317Lnet/minecraft/class_7826;method_46317()Lnet/minecraft/class_7826;official aLxu;a()Lxu;
-
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
-