Record Class ModData
java.lang.Object
java.lang.Record
net.darkhax.mmc.config.ModData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]authors()Returns the value of theauthorsrecord component.booleanclient()Returns the value of theclientrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.license()Returns the value of thelicenserecord component.name()Returns the value of thenamerecord component.repo()Returns the value of thereporecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModData
public ModData(String name, String group, String[] authors, String id, String license, String description, String repo, boolean client) Creates an instance of aModDatarecord class.- Parameters:
name- the value for thenamerecord componentgroup- the value for thegrouprecord componentauthors- the value for theauthorsrecord componentid- the value for theidrecord componentlicense- the value for thelicenserecord componentdescription- the value for thedescriptionrecord componentrepo- the value for thereporecord componentclient- the value for theclientrecord component
-
-
Method Details
-
getFileDisplayName
-
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
authors
Returns the value of theauthorsrecord component.- Returns:
- the value of the
authorsrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
repo
Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-
client
public boolean client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-