Record Class SignedGuide
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.registry.SignedGuide
public record SignedGuide(UUID owner, Map<net.minecraft.resources.Identifier, FishCaughtCounter> fishesCaught, String signature, long date)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSignedGuide(UUID owner, Map<net.minecraft.resources.Identifier, FishCaughtCounter> fishesCaught, String signature, long date) Creates an instance of aSignedGuiderecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.Map<net.minecraft.resources.Identifier, FishCaughtCounter> Returns the value of thefishesCaughtrecord component.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.Returns the value of thesignaturerecord component.static booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
SignedGuide
public SignedGuide(UUID owner, Map<net.minecraft.resources.Identifier, FishCaughtCounter> fishesCaught, String signature, long date) Creates an instance of aSignedGuiderecord class.- Parameters:
owner- the value for theownerrecord componentfishesCaught- the value for thefishesCaughtrecord componentsignature- the value for thesignaturerecord componentdate- the value for thedaterecord component
-
-
Method Details
-
SignGuide
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
fishesCaught
Returns the value of thefishesCaughtrecord component.- Returns:
- the value of the
fishesCaughtrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
date
public long date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-