JavaScript is disabled on your browser.
Record Components:
content
-
timestamp
-
salt
-
lastSeenMessages
-
A body of a message, including the content, timestamp, salt used for the digest
(the hashed body), and the list of players' "last seen messages".
Other bits of information, such as sender, are included directly in the packet.
Mappings:
Namespace
Name
official
ub
intermediary
net/minecraft/class_7608
named
net/minecraft/network/message/MessageBody
official
b
intermediary
comp_929
named
content
official
c
intermediary
comp_930
named
timestamp
official
d
intermediary
comp_931
named
salt
official
e
intermediary
comp_932
named
lastSeenMessages
Nested Class Summary
Nested Classes
static final record
The serialized version of MessageBody
used in networking.
Field Summary
Fields
static final com.mojang.serialization.MapCodec<MessageBody >
The field for the
content
record component.
private final long
The field for the
salt
record component.
The field for the
timestamp
record component.
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Returns the value of the
content
record component.
final boolean
Indicates whether some other object is "equal to" this one.
final int
Returns a hash code value for this object.
long
Returns the value of the
salt
record component.
Returns the value of the
timestamp
record component.
Returns a string representation of this record class.
void
Field Details
content
The field for the
content
record component.
timestamp
The field for the
timestamp
record component.
salt
private final long salt
The field for the
salt
record component.
CODEC
public static final com.mojang.serialization.MapCodec<MessageBody > CODEC
Mappings:
Namespace
Name
Mixin selector
official
a
Lub;a:Lcom/mojang/serialization/MapCodec;
intermediary
field_40847
Lnet/minecraft/class_7608;field_40847:Lcom/mojang/serialization/MapCodec;
named
CODEC
Lnet/minecraft/network/message/MessageBody;CODEC:Lcom/mojang/serialization/MapCodec;
Method Details
ofUnsigned
Mappings:
Namespace
Name
Mixin selector
official
a
Lub;a(Ljava/lang/String;)Lub;
intermediary
method_46305
Lnet/minecraft/class_7608;method_46305(Ljava/lang/String;)Lnet/minecraft/class_7608;
named
ofUnsigned
Lnet/minecraft/network/message/MessageBody;ofUnsigned(Ljava/lang/String;)Lnet/minecraft/network/message/MessageBody;
update
Throws:
SignatureException
Mappings:
Namespace
Name
Mixin selector
official
a
Lub;a(Lapr$a;)V
intermediary
method_46304
Lnet/minecraft/class_7608;method_46304(Lnet/minecraft/class_7498$class_7499;)V
named
update
Lnet/minecraft/network/message/MessageBody;update(Lnet/minecraft/network/encryption/SignatureUpdatable$SignatureUpdater;)V
toSerialized
Mappings:
Namespace
Name
Mixin selector
official
a
Lub;a(Ltv;)Lub$a;
intermediary
method_46306
Lnet/minecraft/class_7608;method_46306(Lnet/minecraft/class_7561;)Lnet/minecraft/class_7608$class_7824;
named
toSerialized
Lnet/minecraft/network/message/MessageBody;toSerialized(Lnet/minecraft/network/message/MessageSignatureStorage;)Lnet/minecraft/network/message/MessageBody$Serialized;
toString
public final String 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.
Specified by:
toString
in class Record
Returns:
a string representation of this object
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.
Specified by:
hashCode
in class Record
Returns:
a hash code value for this object
equals
public final boolean equals (Object object)
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 with
Objects::equals(Object,Object)
; primitive components are compared with '=='.
Specified by:
equals
in class Record
Parameters:
object
- the object with which to compare
Returns:
true
if this object is the same as the object
argument; false
otherwise.
content
Returns the value of the
content
record component.
Returns:
the value of the content
record component
timestamp
Returns the value of the
timestamp
record component.
Returns:
the value of the timestamp
record component
salt
public long salt ()
Returns the value of the
salt
record component.
Returns:
the value of the salt
record component