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 tqintermediary net/minecraft/class_7826named net/minecraft/network/message/MessageLinkofficial bintermediary comp_1094named indexofficial cintermediary comp_1095named senderofficial dintermediary comp_1096named sessionId
-
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 official aLtq;a:Lcom/mojang/serialization/Codec;intermediary field_40849Lnet/minecraft/class_7826;field_40849:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/network/message/MessageLink;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
MessageLink
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLtq;a(Ljava/util/UUID;)Ltq;intermediary method_46319Lnet/minecraft/class_7826;method_46319(Ljava/util/UUID;)Lnet/minecraft/class_7826;named ofLnet/minecraft/network/message/MessageLink;of(Ljava/util/UUID;)Lnet/minecraft/network/message/MessageLink;
-
of
- Mappings:
Namespace Name Mixin selector official aLtq;a(Ljava/util/UUID;Ljava/util/UUID;)Ltq;intermediary method_46320Lnet/minecraft/class_7826;method_46320(Ljava/util/UUID;Ljava/util/UUID;)Lnet/minecraft/class_7826;named ofLnet/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 aLtq;a(Lapi$a;)Vintermediary method_46318Lnet/minecraft/class_7826;method_46318(Lnet/minecraft/class_7498$class_7499;)Vnamed updateLnet/minecraft/network/message/MessageLink;update(Lnet/minecraft/network/encryption/SignatureUpdatable$SignatureUpdater;)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 official aLtq;a(Ltq;)Zintermediary method_46321Lnet/minecraft/class_7826;method_46321(Lnet/minecraft/class_7826;)Znamed linksToLnet/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
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 aLtq;a()Ltq;intermediary method_46317Lnet/minecraft/class_7826;method_46317()Lnet/minecraft/class_7826;named nextLnet/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 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
-