Package net.minecraft.network.encryption
Record Class NetworkEncryptionUtils.SignatureData
java.lang.Object
java.lang.Record
net.minecraft.network.encryption.NetworkEncryptionUtils.SignatureData
- Record Components:
salt-signature-
- Enclosing class:
NetworkEncryptionUtils
public static record NetworkEncryptionUtils.SignatureData(long salt, byte[] signature)
extends Record
- Mappings:
Namespace Name official ajp$bintermediary net/minecraft/class_3515$class_7425named net/minecraft/network/encryption/NetworkEncryptionUtils$SignatureDataofficial bintermediary comp_739named saltofficial cintermediary comp_740named signature
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkEncryptionUtils.SignatureDataprivate final longThe field for thesaltrecord component.private final byte[]The field for thesignaturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSignatureData(long long2, byte[] byte2) SignatureData(PacketByteBuf packetByteBuf) -
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.booleanbyte[]longsalt()Returns the value of thesaltrecord component.byte[]Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf)
-
Field Details
-
salt
private final long saltThe field for thesaltrecord component. -
signature
private final byte[] signatureThe field for thesignaturerecord component. -
field_39040
- Mappings:
Namespace Name Mixin selector official aLajp$b;a:Lajp$b;intermediary field_39040Lnet/minecraft/class_3515$class_7425;field_39040:Lnet/minecraft/class_3515$class_7425;named field_39040Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;field_39040:Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;
-
-
Constructor Details
-
SignatureData
-
SignatureData
public SignatureData(long long2, byte[] byte2)
-
-
Method Details
-
isSignaturePresent
public boolean isSignaturePresent()- Mappings:
Namespace Name Mixin selector official aLajp$b;a()Zintermediary method_43528Lnet/minecraft/class_3515$class_7425;method_43528()Znamed isSignaturePresentLnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;isSignaturePresent()Z
-
write
- Mappings:
Namespace Name Mixin selector official aLajp$b;a(Lqn;)Vintermediary method_43529Lnet/minecraft/class_3515$class_7425;method_43529(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;write(Lnet/minecraft/network/PacketByteBuf;)V
-
method_43530
public byte[] method_43530()- Mappings:
Namespace Name Mixin selector official bLajp$b;b()[Bintermediary method_43530Lnet/minecraft/class_3515$class_7425;method_43530()[Bnamed method_43530Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;method_43530()[B
-
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 '=='. -
salt
public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
signature
public byte[] signature()Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-