Record Class AddonInfo
java.lang.Object
java.lang.Record
net.lynxclient.api.addon.AddonInfo
- Record Components:
id- the addon's mod id from fabric.mod.jsonproblem- why it is not running (empty whenAddonInfo.State.LOADED)modules- ids of the modules it registered
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthors()Returns the value of theauthorsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.modules()Returns the value of themodulesrecord component.name()Returns the value of thenamerecord component.problem()Returns the value of theproblemrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
AddonInfo
public AddonInfo(String id, String name, String version, List<String> authors, String description, AddonInfo.State state, String problem, List<String> modules) Creates an instance of aAddonInforecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentauthors- the value for theauthorsrecord componentdescription- the value for thedescriptionrecord componentstate- the value for thestaterecord componentproblem- the value for theproblemrecord componentmodules- the value for themodulesrecord 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). -
id
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
authors
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
problem
-
modules
-