ClientSpec

public final class ClientSpec extends GameSpecBase

You can set up the client which you want to run and debug your mod on.

See also

Constructors

Link copied to clipboard
public ClientSpec ClientSpec(Project target)

Functions

Link copied to clipboard
public final GitHubGameLoc be(INotation latest)
public final GitHubGameLoc be(String version)

Download bleeding-edge from MindustryPlugin.APIMindustryBEReleaseURL

public final GitHubGameLoc be(Map<String, Object> map)
Link copied to clipboard
public final GitHubGameLoc Foo(Map<String, String> map)
public final GitHubGameLoc Foo(String version, String release)
Link copied to clipboard
public final T from<T extends IGameLoc<?>>(T game)

Set the location to game

public final IGameLoc<?> from(INotation notation)
Link copied to clipboard
public final LocalGameLoc fromLocal(File file)

Copy the game from local file

public final LocalGameLoc fromLocal(String path)

Copy the game from local file at path

Link copied to clipboard
public final GitHubGameLoc GameLocation(Map<String, String> map)
public final GitHubGameLoc GameLocation(    String user,     String repo,     String version,     String release)
Link copied to clipboard
public final List<String> getArgs()
Link copied to clipboard
public final Unit getClearUp()
Link copied to clipboard
public final Unit getKeepOthers()
Link copied to clipboard
public Property<Boolean> getKeepOtherVersion()

Whether to keep other versions when a new version is downloaded.

Link copied to clipboard
public final LatestNotation getLatest()
Link copied to clipboard
public Property<IGameLoc<?>> getLocation()

The game location of client.

Link copied to clipboard
public final ClientSpec getMindustry()
Link copied to clipboard
public ListProperty<String> getStartupArgs()

The extra startup arguments for Mindustry game.

Link copied to clipboard
public final Project getTarget()
Link copied to clipboard
public final String getType()
Link copied to clipboard
public final GitHubGameLoc GitHubLocation(Map<String, String> map)
public final GitHubGameLoc GitHubLocation(    String user,     String repo,     String version,     String release)
Link copied to clipboard
public final GitHubGameLoc LatestBE()

Create a GitHubGameLoc of the latest bleeding-edge from MindustryPlugin.APIMindustryBEReleaseURL

Link copied to clipboard
public final GitHubGameLoc LatestOfficial()

Create a GitHubGameLoc of the latest official edition from MindustryPlugin.APIMindustryOfficialReleaseURL

Link copied to clipboard
public final LocalGameLoc LocalLocation(File file)
public final LocalGameLoc LocalLocation(String path)
Link copied to clipboard
public final GitHubGameLoc official(INotation notation)
public final GitHubGameLoc official(String version)

Download official edition from MindustryPlugin.MindustryOfficialReleaseURL

public final GitHubGameLoc official(Map<String, Object> map)
Link copied to clipboard
public final Unit setArgs(List<String> args)

Properties

Link copied to clipboard
private List<String> args
Link copied to clipboard
private final Unit clearUp

Clean all other versions when a new version is downloaded.

Link copied to clipboard
private final Unit keepOthers

Keep other versions when a new version is downloaded.

Link copied to clipboard
private final Property<Boolean> keepOtherVersion

Whether to keep other versions when a new version is downloaded.

Link copied to clipboard
private final LatestNotation latest

A notation represents the latest version.

Link copied to clipboard
private final Property<IGameLoc<?>> location

The game location of client.

Link copied to clipboard
private final ClientSpec mindustry
Link copied to clipboard
private final ListProperty<String> startupArgs

The extra startup arguments for Mindustry game.

Link copied to clipboard
private final Project target
Link copied to clipboard
private final String type