Class NeoFormRuntime

java.lang.Object
net.neoforged.moddevgradle.dsl.NeoFormRuntime

public abstract class NeoFormRuntime extends Object
Configures aspects of the NeoForm Runtime (NFRT), which is used by this plugin to produce the Minecraft artifacts for compiling and mods.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NeoFormRuntime(org.gradle.api.Project project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NeoFormRuntime

      @Inject public NeoFormRuntime(org.gradle.api.Project project)
  • Method Details

    • getVersion

      public abstract org.gradle.api.provider.Property<String> 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

      public abstract org.gradle.api.provider.Property<Boolean> 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

      public abstract org.gradle.api.provider.Property<Boolean> getEnableCache()
      Controls whether NFRT uses its cache at all.

      Default: true
      Gradle property: neoForge.neoFormRuntime.enableCache.

    • getVerbose

      public abstract org.gradle.api.provider.Property<Boolean> getVerbose()
      Enables verbose logging for NFRT tasks (such as createMinecraftArtifacts).

      Default: false
      Gradle property: neoForge.neoFormRuntime.verbose.

    • getAnalyzeCacheMisses

      public abstract org.gradle.api.provider.Property<Boolean> 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.