Class ModdingVersionSettings

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

public abstract class ModdingVersionSettings extends Object
  • Constructor Details

    • ModdingVersionSettings

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

    • getVersion

      @Nullable public @Nullable String getVersion()
    • getNeoFormVersion

      @Nullable public @Nullable String getNeoFormVersion()
    • setVersion

      public void setVersion(String version)
      NeoForge version number. You have to set either this or setNeoFormVersion(java.lang.String).
    • setNeoFormVersion

      public void setNeoFormVersion(String version)
      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.
    • getEnabledSourceSets

      public Set<org.gradle.api.tasks.SourceSet> getEnabledSourceSets()
      Contains the list of source sets for which access to Minecraft classes should be configured. Defaults to the main source set, but can also be set to an empty list.
    • setEnabledSourceSets

      public void setEnabledSourceSets(Set<org.gradle.api.tasks.SourceSet> enabledSourceSets)
    • isDisableRecompilation

      public boolean isDisableRecompilation()
      true if MDG should skip the NeoForm decompilation/recompilation pipeline, and instead apply transforms on the .class files and use binary patches. This leads to a faster setup since Minecraft doesn't need to be decompiled, however source files will not be available. false by default.
    • setDisableRecompilation

      public void setDisableRecompilation(boolean disableRecompilation)