ModsSpec

public final class ModsSpec

You can add more mods working with your mod, such as a Json mod or Java mod from GitHub, a local file, an url or even a gradle task.

Constructors

Link copied to clipboard
public ModsSpec ModsSpec(Project target)

Functions

Link copied to clipboard
public final GitHubJvmMod closure(String repo)

Add a closure mod form GitHub by its repo name.

Link copied to clipboard
public final ModFolder folder(File folder)
public final ModFolder folder(String path)

Add mods inside a folder from local disk.

Link copied to clipboard
public final Unit fromTask(String task)

Add a mod from the outputs of another task.

Link copied to clipboard
public final ListProperty<String> get_extraModsFromTask()
Link copied to clipboard
public final ModsSpec getAdd()
Link copied to clipboard
public final List<String> getExtraModsFromTask()
Link copied to clipboard
public final Project getTarget()
Link copied to clipboard
public final ListProperty<IMod> getWorksWith()

What mods your mod works with

Link copied to clipboard
public final GitHubMod github(String repo)

Add a mod form GitHub by its repo name. Not recommended: Please use any more specific method, such as java or json

Link copied to clipboard
public final GitHubJvmMod groovy(String repo)

Add a groovy mod form GitHub by its repo name.

Link copied to clipboard
public final GitHubPlainMod hjson(String repo)

Add a json mod form GitHub by its repo name.

Link copied to clipboard
public final GitHubJvmMod java(String repo)

Add a java mod form GitHub by its repo name.

Link copied to clipboard
public final GitHubPlainMod js(String repo)

Add a js mod form GitHub by its repo name.

Link copied to clipboard
public final GitHubPlainMod json(String repo)

Add a json mod form GitHub by its repo name.

Link copied to clipboard
public final GitHubJvmMod kotlin(String repo)

Add a kotlin mod form GitHub by its repo name.

Link copied to clipboard
public final LocalMod local(File file)
public final LocalMod local(String path)

Add a local mod form disk.

Link copied to clipboard
public final Unit localProperties(String key)

Add a local mod form disk by the key in local.properties.

Link copied to clipboard
public final GitHubJvmMod scala(String repo)

Add a scala mod form GitHub by its repo name.

Link copied to clipboard
public final Unit setExtraModsFromTask(List<String> extraModsFromTask)
Link copied to clipboard
public final UrlMod url(String url)

Add a mod from url

Link copied to clipboard
public final Unit worksWith(Runnable config)
public final Unit worksWith(Function0<Unit> config)

Configure what mods your mod works with

public final Unit worksWith(IMod mods)

Add some mods working with your mod.

Properties

Link copied to clipboard
private final ListProperty<String> _extraModsFromTask
Link copied to clipboard
private final ModsSpec add

such as :

Link copied to clipboard
private List<String> extraModsFromTask

The mods form outputs of another task.

Link copied to clipboard
private final Project target
Link copied to clipboard
private final ListProperty<IMod> worksWith

What mods your mod works with