Record Class ResourcePack
java.lang.Object
java.lang.Record
com.zenith.cache.data.config.ResourcePack
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePack(UUID id, String url, String hash, boolean required, net.kyori.adventure.text.Component prompt) Creates an instance of aResourcePackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.net.kyori.adventure.text.Componentprompt()Returns the value of thepromptrecord component.booleanrequired()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ResourcePack
public ResourcePack(UUID id, String url, String hash, boolean required, net.kyori.adventure.text.Component prompt) Creates an instance of aResourcePackrecord class.- Parameters:
id- the value for theidrecord componenturl- the value for theurlrecord componenthash- the value for thehashrecord componentrequired- the value for therequiredrecord componentprompt- the value for thepromptrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
prompt
public net.kyori.adventure.text.Component prompt()Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-