Record Class MessageSignature
java.lang.Object
java.lang.Record
net.minecraft.network.chat.MessageSignature
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thebytesrecord component.static final intstatic final com.mojang.serialization.Codec<MessageSignature> -
Constructor Summary
ConstructorsConstructorDescriptionMessageSignature(byte[] bytes) Creates an instance of aMessageSignaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.intchecksum()static Stringdescribe(@Nullable MessageSignature signature) booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.pack(MessageSignatureCache cache) static MessageSignatureread(FriendlyByteBuf input) toString()Returns a string representation of this record class.booleanverify(SignatureValidator signature, SignatureUpdater updater) static voidwrite(FriendlyByteBuf output, MessageSignature signature)
-
Field Details
-
bytes
private final byte[] bytesThe field for thebytesrecord component. -
CODEC
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
MessageSignature
public MessageSignature(byte[] bytes) Creates an instance of aMessageSignaturerecord class.- Parameters:
bytes- the value for thebytesrecord component
-
-
Method Details
-
read
-
write
-
verify
-
asByteBuffer
-
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
-
toString
-
describe
-
pack
-
checksum
public int checksum() -
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-