mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
backport FernFlowerTask and relevant systems from 0.3
This commit is contained in:
@@ -136,27 +136,8 @@ public class AbstractPlugin implements Plugin<Project> {
|
||||
configureMaven();
|
||||
}
|
||||
|
||||
/**
|
||||
* Permit to create a Task instance of the type in the project
|
||||
*
|
||||
* @param name The name of the task
|
||||
* @param type The type of the task that will be used to create an instance
|
||||
* @return The created task object for the project
|
||||
*/
|
||||
public <T extends Task> T makeTask(String name, Class<T> type) {
|
||||
return makeTask(project, name, type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Permit to create a Task instance of the type in a project
|
||||
*
|
||||
* @param target The target project
|
||||
* @param name The name of the task
|
||||
* @param type The type of the task that will be used to create an instance
|
||||
* @return The created task object for the specified project
|
||||
*/
|
||||
public static <T extends Task> T makeTask(Project target, String name, Class<T> type) {
|
||||
return target.getTasks().create(name, type);
|
||||
public Project getProject() {
|
||||
return project;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user