Class SlimeLauncherOptionsImpl
- All Implemented Interfaces:
SlimeLauncherOptions, SlimeLauncherOptionsNested, org.gradle.api.Named, org.gradle.api.reflect.HasPublicType
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.NamerNested classes/interfaces inherited from interface SlimeLauncherOptionsNested
SlimeLauncherOptionsNested.ModConfig -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds to the arguments to pass to the main class.voidAdds to the arguments to pass to the main class.voidAdds to the arguments to pass to the main class.voidAdds to the arguments to pass to the main class.voidenvironment(String name, Object value) Adds a single environment variable to use.voidenvironment(Map<String, ?> environment) Adds to the environment variables to use.voidenvironment(org.gradle.api.provider.Provider<? extends Map<String, ?>> properties) Adds to the environment variables to use.org.gradle.api.provider.ListProperty<String> getArgs()The arguments to pass to the main class.org.gradle.api.file.ConfigurableFileCollectionThe classpath to use.org.gradle.api.provider.Property<Boolean> The environment variables to use.org.gradle.api.provider.Property<Boolean> Whether or not to inherit arguments from the UserDev provided run configs.org.gradle.api.provider.Property<Boolean> Whether or not to inherit JVM arguments from the UserDev provided run configs.org.gradle.api.provider.ListProperty<String> The JVM arguments to use.org.gradle.api.provider.Property<String> The main class for Slime Launcher to use.org.gradle.api.provider.Property<String> The maximum memory heap size to use.org.gradle.api.provider.Property<String> The minimum memory heap size to use.org.gradle.api.NamedDomainObjectContainer<SlimeLauncherOptionsImpl.ModConfigImpl> getMods()The legacy mod configurations to use.getName()org.gradle.api.provider.MapProperty<String, SlimeLauncherOptionsNested> protected abstract org.gradle.api.model.ObjectFactoryprotected abstract org.gradle.api.file.ProjectLayoutprotected abstract org.gradle.api.provider.ProviderFactorydefault org.gradle.api.reflect.TypeOf<?> The system properties to use.org.gradle.api.file.DirectoryPropertyThe working directory to use.default net.minecraftforge.gradle.internal.SlimeLauncherOptionsInternalnet.minecraftforge.gradle.internal.SlimeLauncherOptionsInternalinherit(Map<String, net.minecraftforge.util.data.json.RunConfig> configs, String sourceSetName, String name) voidAdds to the JVM arguments to use.voidAdds to the JVM arguments to use.voidAdds to the JVM arguments to use.voidAdds to the JVM arguments to use.voidSets the arguments to pass to the main class.voidsetJvmArgs(Object... jvmArgs) Sets the JVM arguments to use.voidsystemProperties(Map<String, ?> properties) Adds to the system properties to use.voidsystemProperties(org.gradle.api.provider.Provider<? extends Map<String, ?>> properties) Adds to the system properties to use.voidsystemProperty(String name, Object value) Adds a single system property to use.toString()voidwith(String sourceSetName, org.gradle.api.Action<? super SlimeLauncherOptionsNested> action) Configures source set-specific attributes for this run.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SlimeLauncherOptions
classpath, classpath, classpath, setClasspath, setClasspath, setClasspath, withMethods inherited from interface SlimeLauncherOptionsNested
mods, mods
-
Field Details
-
LOGGER
static final org.gradle.api.logging.Logger LOGGER
-
-
Constructor Details
-
SlimeLauncherOptionsImpl
-
-
Method Details
-
getProjectLayout
@Inject protected abstract org.gradle.api.file.ProjectLayout getProjectLayout() -
getObjects
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjects() -
getProviders
@Inject protected abstract org.gradle.api.provider.ProviderFactory getProviders() -
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named- Specified by:
getNamein interfaceSlimeLauncherOptions
-
getMainClass
Description copied from interface:SlimeLauncherOptionsNestedThe main class for Slime Launcher to use.
This is the class that will be invoked by Slime Launcher, not the main class of the
JavaExectask that will be produced from these options.- Specified by:
getMainClassin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the main class
-
getInheritArgs
Description copied from interface:SlimeLauncherOptionsNestedWhether or not to inherit arguments from the UserDev provided run configs.
If you set this to false you must specify all arguments to start the process manually.
- Specified by:
getInheritArgsin interfaceSlimeLauncherOptionsNested- Returns:
- A property controlling inheritance of arguments from UserDev config file.
-
getArgs
Description copied from interface:SlimeLauncherOptionsNestedThe arguments to pass to the main class.
This is the arguments that will be passed to the main class through Slime Launcher, not the arguments for Slime Launcher itself.
- Specified by:
getArgsin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the arguments to pass to the main class
-
getInheritJvmArgs
Description copied from interface:SlimeLauncherOptionsNestedWhether or not to inherit JVM arguments from the UserDev provided run configs.
If you set this to false you must specify all JVM arguments to start the process manually.
- Specified by:
getInheritJvmArgsin interfaceSlimeLauncherOptionsNested- Returns:
- A property controlling inheritance of JVM arguments from UserDev config file.
-
getJvmArgs
Description copied from interface:SlimeLauncherOptionsNestedThe JVM arguments to use.
These are applied immediately when Slime Launcher is executed. A reminder that Slime Launcher is not a re-launcher but a dev-environment bootstrapper.
- Specified by:
getJvmArgsin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the JVM arguments
-
getClasspath
public org.gradle.api.file.ConfigurableFileCollection getClasspath()Description copied from interface:SlimeLauncherOptionsThe classpath to use.
The classpath in question must include Slime Launcher in it. By default, Slime Launcher is added on top of the project's runtimeClasspath configuration for this task.
Keep in mind that if the
JavaExectask is configured to have a different main class, the classpath does not need to include Slime Launcher.- Specified by:
getClasspathin interfaceSlimeLauncherOptions- Returns:
- The classpath to use
-
getMinHeapSize
Description copied from interface:SlimeLauncherOptionsNestedThe minimum memory heap size to use.
Working with this property is preferred over manually using the
-Xmsargument in the JVM arguments.- Specified by:
getMinHeapSizein interfaceSlimeLauncherOptionsNested- Returns:
- A property for the minimum heap size
-
getMaxHeapSize
Description copied from interface:SlimeLauncherOptionsNestedThe maximum memory heap size to use.
Working with this property is preferred over manually using the
-Xmxargument in the JVM arguments.- Specified by:
getMaxHeapSizein interfaceSlimeLauncherOptionsNested- Returns:
- A property for the maximum heap size
-
getSystemProperties
Description copied from interface:SlimeLauncherOptionsNestedThe system properties to use.- Specified by:
getSystemPropertiesin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the system properties
-
getEnvironment
Description copied from interface:SlimeLauncherOptionsNestedThe environment variables to use.- Specified by:
getEnvironmentin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the environment variables
-
getWorkingDir
public org.gradle.api.file.DirectoryProperty getWorkingDir()Description copied from interface:SlimeLauncherOptionsThe working directory to use.
By default, this will be
run/sourceSet/name.To clarify: this is the working directory of the Java process. Slime Launcher uses absolute file locations to place its caches and metadata, which do not interfere with the working directory.
- Specified by:
getWorkingDirin interfaceSlimeLauncherOptions- Specified by:
getWorkingDirin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the working directory
-
getClient
-
getNested
-
getMods
Description copied from interface:SlimeLauncherOptionsNestedThe legacy mod configurations to use.
This is used to define the mod's source paths for legacy versions when they cannot be interpreted automatically. Use this if you use non-standard source paths for your mod or source set.
- Specified by:
getModsin interfaceSlimeLauncherOptionsNested- Returns:
- The legacy mod configurations.
-
with
public void with(String sourceSetName, org.gradle.api.Action<? super SlimeLauncherOptionsNested> action) Description copied from interface:SlimeLauncherOptionsConfigures source set-specific attributes for this run.- Specified by:
within interfaceSlimeLauncherOptions- Parameters:
sourceSetName- The source set's name to configure this run foraction- The configuring action- See Also:
-
args
Description copied from interface:SlimeLauncherOptionsNestedAdds to the arguments to pass to the main class.- Specified by:
argsin interfaceSlimeLauncherOptionsNested- Parameters:
args- The arguments to add- See Also:
-
args
Description copied from interface:SlimeLauncherOptionsNestedAdds to the arguments to pass to the main class.- Specified by:
argsin interfaceSlimeLauncherOptionsNested- Parameters:
args- The arguments to add- See Also:
-
args
Description copied from interface:SlimeLauncherOptionsNestedAdds to the arguments to pass to the main class.- Specified by:
argsin interfaceSlimeLauncherOptionsNested- Parameters:
args- The arguments to add- See Also:
-
args
Description copied from interface:SlimeLauncherOptionsNestedAdds to the arguments to pass to the main class.- Specified by:
argsin interfaceSlimeLauncherOptionsNested- Parameters:
args- The arguments to add- See Also:
-
setArgs
Description copied from interface:SlimeLauncherOptionsNestedSets the arguments to pass to the main class.- Specified by:
setArgsin interfaceSlimeLauncherOptionsNested- Parameters:
args- The arguments- See Also:
-
jvmArgs
Description copied from interface:SlimeLauncherOptionsNestedAdds to the JVM arguments to use.- Specified by:
jvmArgsin interfaceSlimeLauncherOptionsNested- Parameters:
jvmArgs- The JVM argument to add- See Also:
-
jvmArgs
Description copied from interface:SlimeLauncherOptionsNestedAdds to the JVM arguments to use.- Specified by:
jvmArgsin interfaceSlimeLauncherOptionsNested- Parameters:
jvmArgs- The JVM arguments to add- See Also:
-
jvmArgs
Description copied from interface:SlimeLauncherOptionsNestedAdds to the JVM arguments to use.- Specified by:
jvmArgsin interfaceSlimeLauncherOptionsNested- Parameters:
jvmArgs- The JVM arguments to add- See Also:
-
jvmArgs
Description copied from interface:SlimeLauncherOptionsNestedAdds to the JVM arguments to use.- Specified by:
jvmArgsin interfaceSlimeLauncherOptionsNested- Parameters:
jvmArgs- The JVM arguments to add- See Also:
-
setJvmArgs
Description copied from interface:SlimeLauncherOptionsNestedSets the JVM arguments to use.- Specified by:
setJvmArgsin interfaceSlimeLauncherOptionsNested- Parameters:
jvmArgs- The arguments- See Also:
-
systemProperty
Description copied from interface:SlimeLauncherOptionsNestedAdds a single system property to use.- Specified by:
systemPropertyin interfaceSlimeLauncherOptionsNested- Parameters:
name- The namevalue- The value- See Also:
-
systemProperties
Description copied from interface:SlimeLauncherOptionsNestedAdds to the system properties to use.- Specified by:
systemPropertiesin interfaceSlimeLauncherOptionsNested- Parameters:
properties- The system properties- See Also:
-
systemProperties
Description copied from interface:SlimeLauncherOptionsNestedAdds to the system properties to use.- Specified by:
systemPropertiesin interfaceSlimeLauncherOptionsNested- Parameters:
properties- The system properties- See Also:
-
environment
Description copied from interface:SlimeLauncherOptionsNestedAdds a single environment variable to use.- Specified by:
environmentin interfaceSlimeLauncherOptionsNested- Parameters:
name- The namevalue- The value- See Also:
-
environment
Description copied from interface:SlimeLauncherOptionsNestedAdds to the environment variables to use.- Specified by:
environmentin interfaceSlimeLauncherOptionsNested- Parameters:
environment- The environment variables- See Also:
-
environment
Description copied from interface:SlimeLauncherOptionsNestedAdds to the environment variables to use.- Specified by:
environmentin interfaceSlimeLauncherOptionsNested- Parameters:
properties- The environment variables- See Also:
-
inherit
-
toString
-
getPublicType
@Internal default org.gradle.api.reflect.TypeOf<?> getPublicType()- Specified by:
getPublicTypein interfaceorg.gradle.api.reflect.HasPublicType
-
inherit
-