Class SlimeLauncherOptionsImpl
- All Implemented Interfaces:
SlimeLauncherOptionsInternal,SlimeLauncherOptions,SlimeLauncherOptionsNested,org.gradle.api.Named,org.gradle.api.reflect.HasPublicType
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Field Summary
Fields inherited from interface net.minecraftforge.gradle.internal.SlimeLauncherOptionsInternal
LOGGER -
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.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.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.ProviderFactoryThe system properties to use.org.gradle.api.file.DirectoryPropertyThe working directory to use.inherit(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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.gradle.SlimeLauncherOptions
classpath, classpath, classpath, setClasspath, setClasspath, setClasspath, withMethods inherited from interface net.minecraftforge.gradle.internal.SlimeLauncherOptionsInternal
getPublicType, inherit
-
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
-
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
-
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
- Specified by:
getClientin interfaceSlimeLauncherOptionsInternal
-
getNested
- Specified by:
getNestedin interfaceSlimeLauncherOptionsInternal
-
with
public void with(String sourceSetName, org.gradle.api.Action<? super SlimeLauncherOptionsNested> action) - Specified by:
within interfaceSlimeLauncherOptions
-
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
public SlimeLauncherOptionsInternal inherit(Map<String, net.minecraftforge.util.data.json.RunConfig> configs, String sourceSetName, String name) - Specified by:
inheritin interfaceSlimeLauncherOptionsInternal
-
toString
-