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.
- Mappings:
Namespace Name official stintermediary net/minecraft/class_7469named net/minecraft/network/message/MessageSignatureDataofficial bintermediary comp_925named data
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interfacestatic interface -
Field Summary
Fields -
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.static MessageSignatureDatafromBuf(PacketByteBuf buf) inthashCode()Returns a hash code value for this object.pack(MessageSignatureData.Packer packer) Returns the byte buffer containing the signature data.toString()Returns a string representation of this record class.booleanverify(SignatureVerifier verifier, SignatureUpdatable updatable) Returns whether the signature data is verified.static voidwrite(PacketByteBuf buf, MessageSignatureData signature)
-
Field Details
-
data
private final byte[] dataThe field for thedatarecord component. -
SIZE
public static final int SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official aLst;a:Iintermediary field_40683Lnet/minecraft/class_7469;field_40683:Inamed SIZELnet/minecraft/network/message/MessageSignatureData;SIZE:I
-
-
Constructor Details
-
MessageSignatureData
public MessageSignatureData(byte[] byte2)
-
-
Method Details
-
fromBuf
- Mappings:
Namespace Name Mixin selector official aLst;a(Lrt;)Lst;intermediary method_46276Lnet/minecraft/class_7469;method_46276(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7469;named fromBufLnet/minecraft/network/message/MessageSignatureData;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/message/MessageSignatureData;
-
write
- Mappings:
Namespace Name Mixin selector official aLst;a(Lrt;Lst;)Vintermediary method_44845Lnet/minecraft/class_7469;method_44845(Lnet/minecraft/class_2540;Lnet/minecraft/class_7469;)Vnamed writeLnet/minecraft/network/message/MessageSignatureData;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/network/message/MessageSignatureData;)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 aLst;a(Lanw;Lanv;)Zintermediary method_44843Lnet/minecraft/class_7469;method_44843(Lnet/minecraft/class_7500;Lnet/minecraft/class_7498;)Znamed verifyLnet/minecraft/network/message/MessageSignatureData;verify(Lnet/minecraft/network/encryption/SignatureVerifier;Lnet/minecraft/network/encryption/SignatureUpdatable;)Z
-
toByteBuffer
Returns the byte buffer containing the signature data.- Returns:
- the byte buffer containing the signature data
- Mappings:
Namespace Name Mixin selector official aLst;a()Ljava/nio/ByteBuffer;intermediary method_44994Lnet/minecraft/class_7469;method_44994()Ljava/nio/ByteBuffer;named toByteBufferLnet/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. -
pack
- Mappings:
Namespace Name Mixin selector official aLst;a(Lst$b;)Lst$a;intermediary method_46277Lnet/minecraft/class_7469;method_46277(Lnet/minecraft/class_7469$class_7820;)Lnet/minecraft/class_7469$class_7819;named packLnet/minecraft/network/message/MessageSignatureData;pack(Lnet/minecraft/network/message/MessageSignatureData$Packer;)Lnet/minecraft/network/message/MessageSignatureData$Indexed;
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-