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 - tq- 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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
indexprivate final int indexThe field for theindexrecord component.
- 
senderThe field for thesenderrecord component.
- 
sessionIdThe field for thesessionIdrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - official - a- Ltq;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- Ltq;a(Ljava/util/UUID;)Ltq;- 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- Ltq;a(Ljava/util/UUID;Ljava/util/UUID;)Ltq;- 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- Ltq;a(Lapi$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
 
- 
linksToReturns 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 - official - a- Ltq;a(Ltq;)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
 
- 
nextReturns 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 - official - a- Ltq;a()Ltq;- 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;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
indexpublic int index()Returns the value of theindexrecord component.- Returns:
- the value of the indexrecord component
 
- 
senderReturns the value of thesenderrecord component.- Returns:
- the value of the senderrecord component
 
- 
sessionIdReturns the value of thesessionIdrecord component.- Returns:
- the value of the sessionIdrecord component
 
 
-