Class FabricApiExtensionImpl
java.lang.Object
net.fabricmc.loom.configuration.fabricapi.FabricApiExtensionImpl
- All Implemented Interfaces:
FabricApiExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfiguration data generation using the default settings.voidconfigureDataGeneration(org.gradle.api.Action<DataGenerationSettings> action) Configuration data generation using the specified settings.voidConfiguration of game and client tests using the default settings.voidconfigureTests(org.gradle.api.Action<GameTestSettings> action) Configuration of game and/or client tests using the specified settings.protected abstract org.gradle.api.model.ObjectFactoryorg.gradle.api.artifacts.DependencyGet aDependencyfor a given Fabric API module.moduleVersion(String moduleName, String fabricApiVersion) Get the version of a Fabric API module.
-
Constructor Details
-
FabricApiExtensionImpl
public FabricApiExtensionImpl()
-
-
Method Details
-
getObjectFactory
@Inject protected abstract org.gradle.api.model.ObjectFactory getObjectFactory() -
module
Description copied from interface:FabricApiExtensionGet aDependencyfor a given Fabric API module.- Specified by:
modulein interfaceFabricApiExtension- Parameters:
moduleName- The name of the module.fabricApiVersion- The main Fabric API version.- Returns:
- A
Dependencyfor the module.
-
moduleVersion
Description copied from interface:FabricApiExtensionGet the version of a Fabric API module.- Specified by:
moduleVersionin interfaceFabricApiExtension- 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:FabricApiExtensionConfiguration data generation using the default settings.- Specified by:
configureDataGenerationin interfaceFabricApiExtension
-
configureDataGeneration
Description copied from interface:FabricApiExtensionConfiguration data generation using the specified settings.- Specified by:
configureDataGenerationin interfaceFabricApiExtension- Parameters:
action- An action to configure specific data generation settings. SeeDataGenerationSettingsfor more information.
-
configureTests
public void configureTests()Description copied from interface:FabricApiExtensionConfiguration of game and client tests using the default settings.- Specified by:
configureTestsin interfaceFabricApiExtension
-
configureTests
Description copied from interface:FabricApiExtensionConfiguration of game and/or client tests using the specified settings.- Specified by:
configureTestsin interfaceFabricApiExtension- Parameters:
action- An action to configure specific game test settings. SeeGameTestSettingsfor more information.
-