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$b
intermediary net/minecraft/class_3515$class_7425
named net/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData
official b
intermediary comp_739
named salt
official c
intermediary comp_740
named signature
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkEncryptionUtils.SignatureData
private final long
The field for thesalt
record component.private final byte[]
The field for thesignature
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSignatureData
(long long2, byte[] byte2) SignatureData
(PacketByteBuf packetByteBuf) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
byte[]
long
salt()
Returns the value of thesalt
record component.byte[]
Returns the value of thesignature
record component.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf)
-
Field Details
-
salt
private final long saltThe field for thesalt
record component. -
signature
private final byte[] signatureThe field for thesignature
record component. -
field_39040
- Mappings:
Namespace Name Mixin selector official a
Lajp$b;a:Lajp$b;
intermediary field_39040
Lnet/minecraft/class_3515$class_7425;field_39040:Lnet/minecraft/class_3515$class_7425;
named field_39040
Lnet/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 a
Lajp$b;a()Z
intermediary method_43528
Lnet/minecraft/class_3515$class_7425;method_43528()Z
named isSignaturePresent
Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;isSignaturePresent()Z
-
write
- Mappings:
Namespace Name Mixin selector official a
Lajp$b;a(Lqn;)V
intermediary method_43529
Lnet/minecraft/class_3515$class_7425;method_43529(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;write(Lnet/minecraft/network/PacketByteBuf;)V
-
method_43530
public byte[] method_43530()- Mappings:
Namespace Name Mixin selector official b
Lajp$b;b()[B
intermediary method_43530
Lnet/minecraft/class_3515$class_7425;method_43530()[B
named method_43530
Lnet/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 thesalt
record component.- Returns:
- the value of the
salt
record component
-
signature
public byte[] signature()Returns the value of thesignature
record component.- Returns:
- the value of the
signature
record component
-