Class RunConfigSettings
java.lang.Object
net.fabricmc.loom.configuration.ide.RunConfigSettings
- All Implemented Interfaces:
RunConfiguration,RunConfigurationInternal,org.gradle.api.Named
public abstract class RunConfigSettings
extends Object
implements org.gradle.api.Named, RunConfiguration, RunConfigurationInternal
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclient()Configure run config with the default client options.voidConfigure run config with the default data options.voiddata()Configure run config with the default data options.voiddefaultMainClass(String cls) Deprecated.voidenvironment(String environment) Deprecated.UsegetEnvironment()instead.voidenvironmentVariable(String name, Object value) Deprecated.UseRunConfiguration.getEnvironmentVars()instead.voidforgeTemplate(String templateName) Deprecated.abstract org.gradle.api.provider.Property<Boolean> Whether to append the project path to theRunConfiguration.getDisplayName()whenprojectisn't the root project.Deprecated.UseRunConfiguration.getDisplayName()instead.Deprecated.UsegetMainClass()instead.Deprecated.UseRunConfiguration.getRuntimeEnvironment()instead.Deprecated.UseRunConfiguration.getEnvironmentVars()instead.abstract org.gradle.api.provider.Property<String> Group this run config under the given folder.abstract org.gradle.api.provider.Property<String> The main class of the run configuration.getName()Deprecated.UsegetProgramArgs()instead.org.gradle.api.ProjectTechnically deprecated, but as it shadows the "project" property from the parent class, it reports as deprecated in IDEs, which is undesirable.Deprecated.UseRunConfiguration.getRunDirectory()instead.org.gradle.api.tasks.SourceSetgetSource(org.gradle.api.Project proj) Deprecated.UseRunConfiguration.getSourceSet()instead.Deprecated.UseRunConfiguration.getJvmArguments()instead.voidideConfigGenerated(boolean ideConfigGenerated) Deprecated.UseRunConfiguration.getGenerateRunConfig()instead.voidinherit(RunConfigSettings parent) booleanDeprecated.UseRunConfiguration.getGenerateRunConfig()instead.voidDeprecated.No replacementvoidDeprecated.UseRunConfiguration.getDisplayName()instead.voidprogramArg(String arg) Deprecated.UsegetProgramArgs()instead.voidprogramArgs(String... args) Deprecated.UsegetProgramArgs()instead.voidprogramArgs(Collection<String> args) Deprecated.UsegetProgramArgs()instead.voidproperties(Map<String, String> props) Deprecated.UseRunConfiguration.getSystemProperties()instead.voidDeprecated.UseRunConfiguration.getSystemProperties()instead.voidDeprecated.UseRunConfiguration.getSystemProperties()instead.voidDeprecated.UseRunConfiguration.getRunDirectory()instead.voidserver()Configure run config with the default server options.voidConfigure run config with the default data options.voidRemoves thenoguiargument for the server configuration.voidsetConfigName(String name) Deprecated.UseRunConfiguration.getDisplayName()instead.voidsetDefaultMainClass(String defaultMainClass) Deprecated.UsegetMainClass()instead.voidsetEnvironment(String environment) Deprecated.UseRunConfiguration.getRuntimeEnvironment()instead.voidsetIdeConfigGenerated(boolean ideConfigGenerated) Deprecated.UseRunConfiguration.getGenerateRunConfig()instead.voidDeprecated.UseRunConfiguration.getDisplayName()instead.voidDeprecated.UseRunConfiguration.getRunDirectory()instead.voidDeprecated.UseRunConfiguration.getSourceSet()instead.voidsetSource(org.gradle.api.tasks.SourceSet source) Deprecated.UseRunConfiguration.getSourceSet()instead.voidDeprecated.UseRunConfiguration.getSourceSet()instead.voidsource(org.gradle.api.tasks.SourceSet source) Deprecated.UseRunConfiguration.getSourceSet()instead.voidDeprecated.No replacementvoidDeprecated.UseRunConfiguration.getJvmArguments()instead.voidDeprecated.UseRunConfiguration.getJvmArguments()instead.voidvmArgs(Collection<String> args) Deprecated.UseRunConfiguration.getJvmArguments()instead.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fabricmc.loom.api.RunConfiguration
getDevLaunchMainClass, getDisplayName, getEnvironmentVars, getForgeTemplate, getGenerateRunConfig, getJvmArguments, getMods, getPreferGradleTask, getProgramArguments, getRunDirectory, getRuntimeEnvironment, getSourceSet, getSystemProperties, inherit, modsMethods inherited from interface net.fabricmc.loom.configuration.ide.RunConfigurationInternal
getIsFinalised
-
Constructor Details
-
RunConfigSettings
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named
-
getAppendProjectPathToDisplayName
Description copied from interface:RunConfigurationWhether to append the project path to theRunConfiguration.getDisplayName()whenprojectisn't the root project.Warning: could produce ambiguous run config names if disabled, unless used carefully in conjunction with
RunConfiguration.getDisplayName().- Specified by:
getAppendProjectPathToDisplayNamein interfaceRunConfiguration
-
getMainClass
Description copied from interface:RunConfigurationThe main class of the run configuration.- Specified by:
getMainClassin interfaceRunConfiguration
-
client
public void client()Description copied from interface:RunConfigurationConfigure run config with the default client options.- Specified by:
clientin interfaceRunConfiguration
-
server
public void server()Description copied from interface:RunConfigurationConfigure run config with the default server options.- Specified by:
serverin interfaceRunConfiguration
-
data
public void data()Description copied from interface:RunConfigurationConfigure run config with the default data options.This method can only be used on Forge and NeoForge.
- Specified by:
datain interfaceRunConfiguration
-
clientData
public void clientData()Description copied from interface:RunConfigurationConfigure run config with the default data options.This method can only be used on NeoForge.
- Specified by:
clientDatain interfaceRunConfiguration
-
serverData
public void serverData()Description copied from interface:RunConfigurationConfigure run config with the default data options.This method can only be used on NeoForge.
- Specified by:
serverDatain interfaceRunConfiguration
-
inherit
-
serverWithGui
public void serverWithGui()Removes thenoguiargument for the server configuration. By defaultnoguiis specified, this is a convenient way to remove it if wanted. -
getIdeConfigFolder
Description copied from interface:RunConfigurationGroup this run config under the given folder.This is currently only supported on IntelliJ IDEA.
- Specified by:
getIdeConfigFolderin interfaceRunConfiguration- Returns:
- The property used to set the config folder.
-
getProject
public org.gradle.api.Project getProject()Technically deprecated, but as it shadows the "project" property from the parent class, it reports as deprecated in IDEs, which is undesirable. -
setName
Deprecated.UseRunConfiguration.getDisplayName()instead. -
getVmArgs
Deprecated.UseRunConfiguration.getJvmArguments()instead. -
getProgramArgs
Deprecated.UsegetProgramArgs()instead. -
getEnvironment
Deprecated.UseRunConfiguration.getRuntimeEnvironment()instead. -
setEnvironment
Deprecated.UseRunConfiguration.getRuntimeEnvironment()instead. -
getConfigName
Deprecated.UseRunConfiguration.getDisplayName()instead. -
setConfigName
Deprecated.UseRunConfiguration.getDisplayName()instead. -
getDefaultMainClass
Deprecated.UsegetMainClass()instead. -
setDefaultMainClass
Deprecated.UsegetMainClass()instead. -
getRunDir
Deprecated.UseRunConfiguration.getRunDirectory()instead. -
setRunDir
Deprecated.UseRunConfiguration.getRunDirectory()instead. -
getSource
Deprecated.UseRunConfiguration.getSourceSet()instead. -
setSource
Deprecated.UseRunConfiguration.getSourceSet()instead. -
setSource
@Deprecated public void setSource(Function<org.gradle.api.Project, org.gradle.api.tasks.SourceSet> sourceFn) Deprecated.UseRunConfiguration.getSourceSet()instead. -
environment
Deprecated.UsegetEnvironment()instead. -
name
Deprecated.UseRunConfiguration.getDisplayName()instead. -
defaultMainClass
Deprecated.UsegetMainClass()instead. -
runDir
Deprecated.UseRunConfiguration.getRunDirectory()instead. -
vmArg
Deprecated.UseRunConfiguration.getJvmArguments()instead. -
vmArgs
Deprecated.UseRunConfiguration.getJvmArguments()instead. -
vmArgs
Deprecated.UseRunConfiguration.getJvmArguments()instead. -
programArg
Deprecated.UsegetProgramArgs()instead. -
programArgs
Deprecated.UsegetProgramArgs()instead. -
programArgs
Deprecated.UsegetProgramArgs()instead. -
source
Deprecated.UseRunConfiguration.getSourceSet()instead. -
source
Deprecated.UseRunConfiguration.getSourceSet()instead. -
ideConfigGenerated
Deprecated.UseRunConfiguration.getGenerateRunConfig()instead. -
getEnvironmentVariables
Deprecated.UseRunConfiguration.getEnvironmentVars()instead. -
environmentVariable
Deprecated.UseRunConfiguration.getEnvironmentVars()instead. -
property
Deprecated.UseRunConfiguration.getSystemProperties()instead. -
property
Deprecated.UseRunConfiguration.getSystemProperties()instead. -
properties
Deprecated.UseRunConfiguration.getSystemProperties()instead. -
startFirstThread
Deprecated.No replacement -
makeRunDir
Deprecated.No replacement -
isIdeConfigGenerated
Deprecated.UseRunConfiguration.getGenerateRunConfig()instead. -
setIdeConfigGenerated
Deprecated.UseRunConfiguration.getGenerateRunConfig()instead. -
forgeTemplate
Deprecated.Applies a Forge run config template to these settings.Calling this method resets the
defaultMainClassof this run config. If you don't want to use Forge's default main class, you need to specify one manually afterwards.- Parameters:
templateName- the template name (usually one ofserver,client,data)- Since:
- 1.0
-
getMainClass()instead.