Record Class ProfilePublicKey.Data
java.lang.Object
java.lang.Record
net.minecraft.world.entity.player.ProfilePublicKey.Data
- Enclosing class:
- ProfilePublicKey
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ProfilePublicKey.Data>private final InstantThe field for theexpiresAtrecord component.private final PublicKeyThe field for thekeyrecord component.private final byte[]The field for thekeySignaturerecord component.private static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.booleanbooleanhasExpired(Duration p_243376_) final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.byte[]Returns the value of thekeySignaturerecord component.private byte[]signedPayload(UUID p_240267_) final StringtoString()Returns a string representation of this record class.(package private) booleanvalidateSignature(SignatureValidator p_240296_, UUID p_240297_) voidwrite(FriendlyByteBuf p_219816_) 
- 
Field Details- 
expiresAtThe field for theexpiresAtrecord component.
- 
keyThe field for thekeyrecord component.
- 
keySignatureprivate final byte[] keySignatureThe field for thekeySignaturerecord component.
- 
MAX_KEY_SIGNATURE_SIZEprivate static final int MAX_KEY_SIGNATURE_SIZE- See Also:
 
- 
CODEC
 
- 
- 
Constructor Details- 
Data
- 
DataCreates an instance of aDatarecord class.- Parameters:
- expiresAt- the value for the- expiresAtrecord component
- key- the value for the- keyrecord component
- keySignature- the value for the- keySignaturerecord component
 
 
- 
- 
Method Details- 
write
- 
validateSignature
- 
signedPayload
- 
hasExpiredpublic boolean hasExpired()
- 
hasExpired
- 
equalsIndicates 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).
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
expiresAtReturns the value of theexpiresAtrecord component.- Returns:
- the value of the expiresAtrecord component
 
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
keySignaturepublic byte[] keySignature()Returns the value of thekeySignaturerecord component.- Returns:
- the value of the keySignaturerecord component
 
 
-