Package net.neoforged.nfrtgradle
Class NeoFormRuntimeExtension
java.lang.Object
net.neoforged.nfrtgradle.NeoFormRuntimeExtension
Configures aspects of the NeoForm Runtime (NFRT), which is used by this plugin to produce
the Minecraft artifacts for compiling and mods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean>Enables additional logging in NFRT when an operation cannot reuse any of the previously cached intermediate results.abstract org.gradle.api.provider.Property<Boolean>Controls whether NFRT uses its cache at all.abstract org.gradle.api.provider.Property<Boolean>Enable use of the Eclipse compiler to recompile the Minecraft assets.abstract org.gradle.api.provider.Property<Boolean>Enables verbose logging for NFRT tasks (such as createMinecraftArtifacts).abstract org.gradle.api.provider.Property<String>Overrides the version of NFRT to use.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
NeoFormRuntimeExtension
@Inject public NeoFormRuntimeExtension(org.gradle.api.Project project)
-
-
Method Details
-
getVersion
Overrides the version of NFRT to use. This is an advanced feature. This plugin will default to a compatible version.Gradle property:
neoForge.neoFormRuntime.version. -
getUseEclipseCompiler
Enable use of the Eclipse compiler to recompile the Minecraft assets.While producing generally similar results, the Eclipse compiler can use multiple cores during recompilation, speeding up the process if you have many CPU cores.
Default:
false
Gradle property:neoForge.neoFormRuntime.useEclipseCompiler. -
getEnableCache
Controls whether NFRT uses its cache at all.Default:
true
Gradle property:neoForge.neoFormRuntime.enableCache. -
getVerbose
Enables verbose logging for NFRT tasks (such as createMinecraftArtifacts).Default:
false
Gradle property:neoForge.neoFormRuntime.verbose. -
getAnalyzeCacheMisses
Enables additional logging in NFRT when an operation cannot reuse any of the previously cached intermediate results. This has a performance impact, since it involves scanning the cache directory for similar results.Default:
false
Gradle property:neoForge.neoFormRuntime.analyzeCacheMisses.
-