Class ModModel

java.lang.Object
net.neoforged.moddevgradle.dsl.ModModel
All Implemented Interfaces:
org.gradle.api.Named

public abstract class ModModel extends Object implements org.gradle.api.Named
Model of a mod. This tells the moddev plugin which classes and resources need to be combined to produce a valid mod.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Named

    org.gradle.api.Named.Namer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.provider.ListProperty<org.gradle.api.tasks.SourceSet>
     
    abstract String
     
    void
    sourceSet(org.gradle.api.tasks.SourceSet sourceSet)
     

    Methods inherited from class java.lang.Object

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

    • ModModel

      @Inject public ModModel()
  • Method Details

    • getName

      public abstract String getName()
      Specified by:
      getName in interface org.gradle.api.Named
    • getModSourceSets

      public abstract org.gradle.api.provider.ListProperty<org.gradle.api.tasks.SourceSet> getModSourceSets()
    • sourceSet

      public void sourceSet(org.gradle.api.tasks.SourceSet sourceSet)