Record Class UserDevConfig
java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.UserDevConfig
- All Implemented Interfaces:
Serializable
public record UserDevConfig(String mcp, String sources, String universal, List<String> libraries, List<String> modules, Map<String,UserDevRunType> runs)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static UserDevConfigfinal inthashCode()Returns a hash code value for this object.Returns the value of thelibrariesrecord component.mcp()Returns the value of themcprecord component.modules()Returns the value of themodulesrecord component.runs()Returns the value of therunsrecord component.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniversalrecord component.
-
Constructor Details
-
UserDevConfig
public UserDevConfig(String mcp, String sources, String universal, List<String> libraries, List<String> modules, Map<String, UserDevRunType> runs) Creates an instance of aUserDevConfigrecord class.- Parameters:
mcp- the value for themcprecord componentsources- the value for thesourcesrecord componentuniversal- the value for theuniversalrecord componentlibraries- the value for thelibrariesrecord componentmodules- the value for themodulesrecord componentruns- the value for therunsrecord component
-
-
Method Details
-
from
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
mcp
Returns the value of themcprecord component.- Returns:
- the value of the
mcprecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
universal
Returns the value of theuniversalrecord component.- Returns:
- the value of the
universalrecord component
-
libraries
Returns the value of thelibrariesrecord component.- Returns:
- the value of the
librariesrecord component
-
modules
Returns the value of themodulesrecord component.- Returns:
- the value of the
modulesrecord component
-
runs
Returns the value of therunsrecord component.- Returns:
- the value of the
runsrecord component
-