RunSpec

public final class RunSpec

You can configure how to dispose of the data Mindustry generated during running.

Constructors

Link copied to clipboard
public RunSpec RunSpec(Project target)

Functions

Link copied to clipboard
public final Property<String> get_dataDir()
Link copied to clipboard
public final Property<Boolean> get_forciblyClear()

Whether to delete all mods other than any in ModsSpec.worksWith in the data directory, ensure you have backed up your mods.

Link copied to clipboard
public final Unit getClearOtherMods()
Link copied to clipboard
public final String getDataDir()
Link copied to clipboard
public final Boolean getForciblyClear()
Link copied to clipboard
public final Unit getKeepOtherMods()
Link copied to clipboard
public final Unit getUseDefaultDataDir()
Link copied to clipboard
public final Unit getUseEnvDataDir()
Link copied to clipboard
public final Unit getUseTempDataDir()
Link copied to clipboard
public final Unit setDataDefault()

Set the dataDir to the default path of which Mindustry commonly used

Link copied to clipboard
public final Unit setDataDir(@InheritFromParent() @DefaultValue(default = "temp") String dataDir)
Link copied to clipboard
public final Unit setDataTemp()

Set the dataDir to the RunMindustry.getTemporaryDir.

Link copied to clipboard
public final Unit setForciblyClear(@InheritFromParent() @DefaultValue(default = "false") Boolean forciblyClear)

Properties

Link copied to clipboard
@DefaultValue(default = "<temp>")
private final Property<String> _dataDir
Link copied to clipboard
@DefaultValue(default = "false")
private final Property<Boolean> _forciblyClear

Whether to delete all mods other than any in ModsSpec.worksWith in the data directory, ensure you have backed up your mods.

Link copied to clipboard
private final Unit clearOtherMods

Clear all things in the data directory

Link copied to clipboard
@DefaultValue(default = "temp")
private String dataDir

The data directory for Mindustry running.

Link copied to clipboard
@DefaultValue(default = "false")
private Boolean forciblyClear

Whether to delete all mods other than any from ModsSpec.worksWith in the data directory, ensure you have backed up your mods.

Link copied to clipboard
private final Unit keepOtherMods

Keep anything in the data directory

Link copied to clipboard
private final Unit useDefaultDataDir

Set the dataDir to the default path of which Mindustry commonly used.

Link copied to clipboard
private final Unit useEnvDataDir

Set the dataDir to the environment variable,

Link copied to clipboard
private final Unit useTempDataDir

Set the dataDir to the RunMindustry.getTemporaryDir.