Class FabricApiExtensionImpl

java.lang.Object
net.fabricmc.loom.configuration.fabricapi.FabricApiExtensionImpl
All Implemented Interfaces:
FabricApiExtension

public abstract class FabricApiExtensionImpl extends Object implements FabricApiExtension
  • Constructor Details

    • FabricApiExtensionImpl

      public FabricApiExtensionImpl()
  • Method Details

    • getObjectFactory

      @Inject protected abstract org.gradle.api.model.ObjectFactory getObjectFactory()
    • module

      public org.gradle.api.artifacts.Dependency module(String moduleName, String fabricApiVersion)
      Description copied from interface: FabricApiExtension
      Get a Dependency for a given Fabric API module.
      Specified by:
      module in interface FabricApiExtension
      Parameters:
      moduleName - The name of the module.
      fabricApiVersion - The main Fabric API version.
      Returns:
      A Dependency for the module.
    • moduleVersion

      public String moduleVersion(String moduleName, String fabricApiVersion)
      Description copied from interface: FabricApiExtension
      Get the version of a Fabric API module.
      Specified by:
      moduleVersion in interface FabricApiExtension
      Parameters:
      moduleName - The name of the module.
      fabricApiVersion - The main Fabric API version.
      Returns:
      The version of the module.
    • configureDataGeneration

      public void configureDataGeneration()
      Description copied from interface: FabricApiExtension
      Configuration data generation using the default settings.
      Specified by:
      configureDataGeneration in interface FabricApiExtension
    • configureDataGeneration

      public void configureDataGeneration(org.gradle.api.Action<DataGenerationSettings> action)
      Description copied from interface: FabricApiExtension
      Configuration data generation using the specified settings.
      Specified by:
      configureDataGeneration in interface FabricApiExtension
      Parameters:
      action - An action to configure specific data generation settings. See DataGenerationSettings for more information.
    • configureTests

      public void configureTests()
      Description copied from interface: FabricApiExtension
      Configuration of game and client tests using the default settings.
      Specified by:
      configureTests in interface FabricApiExtension
    • configureTests

      public void configureTests(org.gradle.api.Action<GameTestSettings> action)
      Description copied from interface: FabricApiExtension
      Configuration of game and/or client tests using the specified settings.
      Specified by:
      configureTests in interface FabricApiExtension
      Parameters:
      action - An action to configure specific game test settings. See GameTestSettings for more information.