Record Class AttachmentSyncPayload.Entry
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcore.internal.attachment.AttachmentSyncPayload.Entry
- Enclosing class:
AttachmentSyncPayload
public static record AttachmentSyncPayload.Entry(net.minecraft.resources.Identifier key, byte @Nullable [] value)
extends Record
value is null when the value was reset to its default.-
Constructor Summary
ConstructorsConstructorDescriptionEntry(net.minecraft.resources.Identifier key, byte @Nullable [] value) Creates an instance of aEntryrecord class. -
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.net.minecraft.resources.Identifierkey()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.byte @Nullable []value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Entry
public Entry(net.minecraft.resources.Identifier key, byte @Nullable [] value) Creates an instance of aEntryrecord class.- Parameters:
key- the value for thekeyrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
key
public net.minecraft.resources.Identifier key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
public byte @Nullable [] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-