Class NeoForgeExtension

java.lang.Object
net.neoforged.moddevgradle.dsl.ModDevExtension
net.neoforged.moddevgradle.dsl.NeoForgeExtension

public abstract class NeoForgeExtension extends ModDevExtension
This is the top-level neoForge extension, used to configure the moddev plugin.
  • Field Details

  • Constructor Details

  • Method Details

    • setVersion

      public void setVersion(String version)
      Enables modding on the main source set with the given NeoForge version. Shorthand for: enable { version = '...' }
    • setNeoFormVersion

      public void setNeoFormVersion(String version)
      Enables the Vanilla-only mode of ModDevGradle. Shorthand for: enable { neoFormVersion = '...' }
    • getNeoFormVersion

      public String getNeoFormVersion()
      After enabling modding, you can retrieve the version of NeoForm you picked using this getter. This is only meaningful if you have enabled vanilla-only mode or if you have overridden NeoForm for NeoForge. This getter throws if no NeoForm version was set.
    • enable

      public void enable(org.gradle.api.Action<ModdingVersionSettings> customizer)
    • getUnitTest

      public UnitTest getUnitTest()
    • unitTest

      public void unitTest(org.gradle.api.Action<UnitTest> action)