Class StandardScriptsModules.AddonScriptModule

java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.StandardScriptsModules.AddonScriptModule
All Implemented Interfaces:
GTNHModule
Enclosing class:
StandardScriptsModules

public static class StandardScriptsModules.AddonScriptModule extends Object
Early addon script
  • Constructor Details

    • AddonScriptModule

      public AddonScriptModule()
  • Method Details

    • getScriptName

      @NotNull public @NotNull String getScriptName()
      Returns:
      Name of the script to execute without the extension
    • isEnabled

      public final boolean isEnabled(@NotNull @NotNull PropertiesConfiguration configuration)
      Specified by:
      isEnabled in interface GTNHModule
      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 interface GTNHModule
      Parameters:
      gtnh - The GTNH extension providing access to various gradle services and configuration
      project - The project to activate the module on
      Throws:
      Throwable - Any exception to allow easier module writing