Record Class RemappedSpecContext
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.speccontext.RemappedSpecContext
- Record Components:
modDependencies- External mods that are depended onlocalMods- Mods found in the current project.compileRuntimeMods- Dependent mods found in both the compile and runtime classpath.
- All Implemented Interfaces:
SpecContext
public record RemappedSpecContext(List<FabricModJson> modDependencies, List<FabricModJson> localMods, List<net.fabricmc.loom.configuration.processors.speccontext.RemappedSpecContext.ModHolder> compileRuntimeMods, MappingsNamespace productionNamespace)
extends Record
implements SpecContext
-
Constructor Summary
ConstructorsConstructorDescriptionRemappedSpecContext(List<FabricModJson> modDependencies, List<FabricModJson> localMods, List<net.fabricmc.loom.configuration.processors.speccontext.RemappedSpecContext.ModHolder> compileRuntimeMods, MappingsNamespace productionNamespace) Creates an instance of aRemappedSpecContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.fabricmc.loom.configuration.processors.speccontext.RemappedSpecContext.ModHolder> Returns the value of thecompileRuntimeModsrecord component.static RemappedSpecContextcreate(RemappedProjectView projectView) static RemappedSpecContextcreate(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.Return a set of mods that should be used for transforms, that target EITHER the common or client.Return a set of mods that should be used for transforms, that target ONLY the client.Returns the value of theproductionNamespacerecord 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
-
RemappedSpecContext
public RemappedSpecContext(List<FabricModJson> modDependencies, List<FabricModJson> localMods, List<net.fabricmc.loom.configuration.processors.speccontext.RemappedSpecContext.ModHolder> compileRuntimeMods, MappingsNamespace productionNamespace) Creates an instance of aRemappedSpecContextrecord class.- Parameters:
modDependencies- the value for themodDependenciesrecord componentlocalMods- the value for thelocalModsrecord componentcompileRuntimeMods- the value for thecompileRuntimeModsrecord componentproductionNamespace- the value for theproductionNamespacerecord component
-
-
Method Details
-
create
-
create
-
modDependenciesCompileRuntime
Description copied from interface:SpecContextReturn a set of mods that should be used for transforms, that target EITHER the common or client.- Specified by:
modDependenciesCompileRuntimein interfaceSpecContext
-
modDependenciesCompileRuntimeClient
Description copied from interface:SpecContextReturn a set of mods that should be used for transforms, that target ONLY the client.- Specified by:
modDependenciesCompileRuntimeClientin 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
-
compileRuntimeMods
public List<net.fabricmc.loom.configuration.processors.speccontext.RemappedSpecContext.ModHolder> compileRuntimeMods()Returns the value of thecompileRuntimeModsrecord component.- Returns:
- the value of the
compileRuntimeModsrecord component
-
productionNamespace
Returns the value of theproductionNamespacerecord component.- Specified by:
productionNamespacein interfaceSpecContext- Returns:
- the value of the
productionNamespacerecord component
-