Class NeoForgeExtension

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

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

  • Constructor Details

    • NeoForgeExtension

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

    • addModdingDependenciesTo

      public void addModdingDependenciesTo(org.gradle.api.tasks.SourceSet sourceSet)
      Adds the necessary dependencies to develop a Minecraft mod to the given source set. The plugin automatically adds these dependencies to the main source set.
    • getVersion

      public abstract org.gradle.api.provider.Property<String> getVersion()
      NeoForge version number. You have to set either this or getNeoFormVersion().
    • getNeoFormVersion

      public abstract org.gradle.api.provider.Property<String> getNeoFormVersion()
      You can set this property to a version of NeoForm to either override the version used in the version of NeoForge you set, or to compile against Vanilla artifacts that have no NeoForge code added.
    • getAccessTransformers

      public abstract org.gradle.api.provider.ListProperty<String> getAccessTransformers()
    • getMods

      public org.gradle.api.NamedDomainObjectContainer<ModModel> getMods()
    • mods

      public void mods(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<ModModel>> action)
    • getRuns

      public org.gradle.api.NamedDomainObjectContainer<RunModel> getRuns()
    • runs

      public void runs(org.gradle.api.Action<org.gradle.api.NamedDomainObjectContainer<RunModel>> action)
    • getParchment

      public Parchment getParchment()
    • parchment

      public void parchment(org.gradle.api.Action<Parchment> action)
    • getNeoFormRuntime

      public NeoFormRuntime getNeoFormRuntime()
    • neoFormRuntime

      public void neoFormRuntime(org.gradle.api.Action<NeoFormRuntime> action)
    • getUnitTest

      public UnitTest getUnitTest()
    • unitTest

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