mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Add a FileCollection to ModSettings
This commit is contained in:
@@ -27,6 +27,7 @@ package net.fabricmc.loom.api;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.gradle.api.Named;
|
||||
import org.gradle.api.file.FileCollection;
|
||||
import org.gradle.api.provider.ListProperty;
|
||||
import org.gradle.api.tasks.SourceSet;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
@@ -41,6 +42,11 @@ public abstract class ModSettings implements Named {
|
||||
*/
|
||||
public abstract ListProperty<SourceSet> getModSourceSets();
|
||||
|
||||
/**
|
||||
* List of classpath directories, or jar files used to populate the `fabric.classPathGroups` Fabric Loader system property.
|
||||
*/
|
||||
public abstract FileCollection getModFiles();
|
||||
|
||||
@Inject
|
||||
public ModSettings() {
|
||||
getModSourceSets().finalizeValueOnRead();
|
||||
|
||||
Reference in New Issue
Block a user