Package net.minecraft.network.message
Record Class MessageSignatureData
java.lang.Object
java.lang.Record
net.minecraft.network.message.MessageSignatureData
- Record Components:
data
-
A message signature data that can be verified when given the header.
- Mappings:
Namespace Name official rz
intermediary net/minecraft/class_7469
named net/minecraft/network/message/MessageSignatureData
official b
intermediary comp_925
named data
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
The field for thedata
record component.static final MessageSignatureData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
data()
Returns the value of thedata
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.boolean
isEmpty()
Returns the byte buffer containing the signature data, ornull
if this signature data is empty.toString()
Returns a string representation of this record class.boolean
verify
(SignatureVerifier verifier, MessageHeader header, byte[] bodyDigest) Returns whether the signature data is verified.boolean
verify
(SignatureVerifier verifier, MessageHeader header, MessageBody body) Returns whether the signature data is verified.void
write
(PacketByteBuf buf)
-
Field Details
-
data
private final byte[] dataThe field for thedata
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lrz;a:Lrz;
intermediary field_39811
Lnet/minecraft/class_7469;field_39811:Lnet/minecraft/class_7469;
named EMPTY
Lnet/minecraft/network/message/MessageSignatureData;EMPTY:Lnet/minecraft/network/message/MessageSignatureData;
-
-
Constructor Details
-
MessageSignatureData
- Mappings:
Namespace Name Mixin selector official <init>
Lrz;<init>(Lqx;)V
intermediary <init>
Lnet/minecraft/class_7469;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/message/MessageSignatureData;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
MessageSignatureData
public MessageSignatureData(byte[] byte2)
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official a
Lrz;a(Lqx;)V
intermediary method_44845
Lnet/minecraft/class_7469;method_44845(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/message/MessageSignatureData;write(Lnet/minecraft/network/PacketByteBuf;)V
-
verify
Returns whether the signature data is verified.- Parameters:
verifier
- the verifier that is created with the sender's public key- Returns:
- whether the signature data is verified
- Mappings:
Namespace Name Mixin selector official a
Lrz;a(Lamp;Lsh;Lsf;)Z
intermediary method_44843
Lnet/minecraft/class_7469;method_44843(Lnet/minecraft/class_7500;Lnet/minecraft/class_7614;Lnet/minecraft/class_7608;)Z
named verify
Lnet/minecraft/network/message/MessageSignatureData;verify(Lnet/minecraft/network/encryption/SignatureVerifier;Lnet/minecraft/network/message/MessageHeader;Lnet/minecraft/network/message/MessageBody;)Z
-
verify
Returns whether the signature data is verified.- Parameters:
verifier
- the verifier that is created with the sender's public keybodyDigest
- the digest of the message body- Returns:
- whether the signature data is verified
- Mappings:
Namespace Name Mixin selector official a
Lrz;a(Lamp;Lsh;[B)Z
intermediary method_44844
Lnet/minecraft/class_7469;method_44844(Lnet/minecraft/class_7500;Lnet/minecraft/class_7614;[B)Z
named verify
Lnet/minecraft/network/message/MessageSignatureData;verify(Lnet/minecraft/network/encryption/SignatureVerifier;Lnet/minecraft/network/message/MessageHeader;[B)Z
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official a
Lrz;a()Z
intermediary method_44842
Lnet/minecraft/class_7469;method_44842()Z
named isEmpty
Lnet/minecraft/network/message/MessageSignatureData;isEmpty()Z
-
toByteBuffer
Returns the byte buffer containing the signature data, ornull
if this signature data is empty.- Returns:
- the byte buffer containing the signature data, or
null
if this signature data is empty - Mappings:
Namespace Name Mixin selector official b
Lrz;b()Ljava/nio/ByteBuffer;
intermediary method_44994
Lnet/minecraft/class_7469;method_44994()Ljava/nio/ByteBuffer;
named toByteBuffer
Lnet/minecraft/network/message/MessageSignatureData;toByteBuffer()Ljava/nio/ByteBuffer;
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
data
public byte[] data()Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-