Class StandardScriptsModules.AddonScriptModule
java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.StandardScriptsModules.AddonScriptModule
- All Implemented Interfaces:
GTNHModule
- Enclosing class:
StandardScriptsModules
Early addon script
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
apply
(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull Project project) Activates this module on the given project.@NotNull String
final boolean
isEnabled
(@NotNull PropertiesConfiguration configuration)
-
Constructor Details
-
AddonScriptModule
public AddonScriptModule()
-
-
Method Details
-
getScriptName
- Returns:
- Name of the script to execute without the extension
-
isEnabled
- Specified by:
isEnabled
in interfaceGTNHModule
- Parameters:
configuration
- The project configuration- Returns:
- If this module should be enabled for the input project settings
-
apply
public final void apply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull @NotNull Project project) throws Throwable Description copied from interface:GTNHModule
Activates this module on the given project.- Specified by:
apply
in interfaceGTNHModule
- Parameters:
gtnh
- The GTNH extension providing access to various gradle services and configurationproject
- The project to activate the module on- Throws:
Throwable
- Any exception to allow easier module writing
-