Record Class DeobfSpecContext
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.speccontext.DeobfSpecContext
- All Implemented Interfaces:
SpecContext
public record DeobfSpecContext(List<FabricModJson> modDependencies, List<FabricModJson> localMods, List<FabricModJson> modDependenciesCompileRuntime, List<FabricModJson> modDependenciesCompileRuntimeClient)
extends Record
implements SpecContext
-
Constructor Summary
ConstructorsConstructorDescriptionDeobfSpecContext(List<FabricModJson> modDependencies, List<FabricModJson> localMods, List<FabricModJson> modDependenciesCompileRuntime, List<FabricModJson> modDependenciesCompileRuntimeClient) Creates an instance of aDeobfSpecContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeobfSpecContextcreate(DeobfProjectView projectView) static DeobfSpecContextcreate(org.gradle.api.Project project) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalModsrecord component.Returns the value of themodDependenciesrecord component.Returns the value of themodDependenciesCompileRuntimerecord component.Returns the value of themodDependenciesCompileRuntimeClientrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.loom.api.processor.SpecContext
allMods
-
Constructor Details
-
DeobfSpecContext
public DeobfSpecContext(List<FabricModJson> modDependencies, List<FabricModJson> localMods, List<FabricModJson> modDependenciesCompileRuntime, List<FabricModJson> modDependenciesCompileRuntimeClient) Creates an instance of aDeobfSpecContextrecord class.- Parameters:
modDependencies- the value for themodDependenciesrecord componentlocalMods- the value for thelocalModsrecord componentmodDependenciesCompileRuntime- the value for themodDependenciesCompileRuntimerecord componentmodDependenciesCompileRuntimeClient- the value for themodDependenciesCompileRuntimeClientrecord component
-
-
Method Details
-
create
-
create
-
productionNamespace
- Specified by:
productionNamespacein interfaceSpecContext
-
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). -
modDependencies
Returns the value of themodDependenciesrecord component.- Specified by:
modDependenciesin interfaceSpecContext- Returns:
- the value of the
modDependenciesrecord component
-
localMods
Returns the value of thelocalModsrecord component.- Specified by:
localModsin interfaceSpecContext- Returns:
- the value of the
localModsrecord component
-
modDependenciesCompileRuntime
Returns the value of themodDependenciesCompileRuntimerecord component.- Specified by:
modDependenciesCompileRuntimein interfaceSpecContext- Returns:
- the value of the
modDependenciesCompileRuntimerecord component
-
modDependenciesCompileRuntimeClient
Returns the value of themodDependenciesCompileRuntimeClientrecord component.- Specified by:
modDependenciesCompileRuntimeClientin interfaceSpecContext- Returns:
- the value of the
modDependenciesCompileRuntimeClientrecord component
-