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 rwintermediary net/minecraft/class_7469named net/minecraft/network/message/MessageSignatureDataofficial bintermediary comp_925named data
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thedatarecord component.static final MessageSignatureData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanisEmpty()toString()Returns a string representation of this record class.booleanverify(SignatureVerifier verifier, MessageHeader header, byte[] bodyDigest) Returns whether the signature data is verified.booleanverify(SignatureVerifier verifier, MessageHeader header, MessageBody body) Returns whether the signature data is verified.voidwrite(PacketByteBuf buf)
-
Field Details
-
data
private final byte[] dataThe field for thedatarecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLrw;a:Lrw;intermediary field_39811Lnet/minecraft/class_7469;field_39811:Lnet/minecraft/class_7469;named EMPTYLnet/minecraft/network/message/MessageSignatureData;EMPTY:Lnet/minecraft/network/message/MessageSignatureData;
-
-
Constructor Details
-
MessageSignatureData
- Mappings:
Namespace Name Mixin selector official <init>Lrw;<init>(Lqx;)Vintermediary <init>Lnet/minecraft/class_7469;<init>(Lnet/minecraft/class_2540;)Vnamed <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 aLrw;a(Lqx;)Vintermediary method_44845Lnet/minecraft/class_7469;method_44845(Lnet/minecraft/class_2540;)Vnamed writeLnet/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 aLrw;a(Laml;Lsd;Lsb;)Zintermediary method_44843Lnet/minecraft/class_7469;method_44843(Lnet/minecraft/class_7500;Lnet/minecraft/class_7614;Lnet/minecraft/class_7608;)Znamed verifyLnet/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 aLrw;a(Laml;Lsd;[B)Zintermediary method_44844Lnet/minecraft/class_7469;method_44844(Lnet/minecraft/class_7500;Lnet/minecraft/class_7614;[B)Znamed verifyLnet/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 aLrw;a()Zintermediary method_44842Lnet/minecraft/class_7469;method_44842()Znamed isEmptyLnet/minecraft/network/message/MessageSignatureData;isEmpty()Z
-
method_44994
- Mappings:
Namespace Name Mixin selector official bLrw;b()Ljava/nio/ByteBuffer;intermediary method_44994Lnet/minecraft/class_7469;method_44994()Ljava/nio/ByteBuffer;named method_44994Lnet/minecraft/network/message/MessageSignatureData;method_44994()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 thedatarecord component.- Returns:
- the value of the
datarecord component
-