Class UtilityModule
java.lang.Object
com.gtnewhorizons.gtnhgradle.modules.UtilityModule
- All Implemented Interfaces:
GTNHModule
Provides utility tasks and functions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGroovy-callable wrapper fordeobf(Project, String)anddeobf(Project, String, String)static classGroovy-callable wrapper fordeobfCurse(Project, String)static classGroovy-callable wrapper fordeobfMaven(Project, String, String) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull Project project) Activates this module on the given project.static ObjectDeprecated URL-based deobfuscation wrapperstatic ObjectDeprecated URL-based deobfuscation wrapperstatic ObjectdeobfCurse(Project project, String curseDep) Thin wrapper around cursemaven and rfg.deobf.static ObjectdeobfMaven(Project project, String repoURL, String mavenDep) Deprecated by rfg.deobf, deobfuscate a maven dependencybooleanisEnabled(@NotNull PropertiesConfiguration configuration) static intReplace SRG param names with MCP names
-
Constructor Details
-
UtilityModule
public UtilityModule()
-
-
Method Details
-
isEnabled
- Specified by:
isEnabledin interfaceGTNHModule- Parameters:
configuration- The project configuration- Returns:
- If this module should be enabled for the input project settings
-
apply
public void apply(@NotNull GTNHGradlePlugin.GTNHExtension gtnh, @NotNull @NotNull Project project) throws Throwable Description copied from interface:GTNHModuleActivates this module on the given project.- Specified by:
applyin 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
-
replaceParams
-
deobf
-
deobf
Deprecated URL-based deobfuscation wrapper- Parameters:
project- Gradle project to usesourceURL- The obfuscated jar URLrawFileName- Name for the file to cache- Returns:
- A dependency specification for the deobfed jar
-
deobfMaven
Deprecated by rfg.deobf, deobfuscate a maven dependency- Parameters:
project- Gradle project to userepoURL- URL of the maven repositorymavenDep- GAV coordinates for the jar to deobfuscate- Returns:
- A dependency specification for the deobfed jar
-
deobfCurse
-