Class ModUtils
java.lang.Object
com.gtnewhorizons.retrofuturagradle.modutils.ModUtils
Gradle utilities for developing mods
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModUtils(Project project, MinecraftExtension mcExt, MinecraftTasks minecraftTasks, MCPTasks mcpTasks) -
Method Summary
Modifier and TypeMethodDescriptiondeobfuscate(Object depSpec) Wrap a dependency specification with a call to this function to make RFG deobfuscate it on resolution in MCP-mapped configurations.enableMixins(Object mixinSpec) enableMixins(Object mixinSpec, String refMapName) Wrap a mixin dependency specification with a call to this function to allow RFG to recognise the need for a refmap to be generated.getLiveMirrorURL(int timeoutMillis, String... mirrors) Tries to connect to a set of URLs in parallel, returning the first URL that responds with a success HTTP code.
-
Field Details
-
TASK_GROUP_INTERNAL
- See Also:
-
TASK_GROUP_USER
- See Also:
-
mixinSourceSet
-
DEOBFUSCATOR_TRANSFORMED
-
-
Constructor Details
-
ModUtils
public ModUtils(Project project, MinecraftExtension mcExt, MinecraftTasks minecraftTasks, MCPTasks mcpTasks)
-
-
Method Details
-
getLiveMirrorURL
Tries to connect to a set of URLs in parallel, returning the first URL that responds with a success HTTP code.- Parameters:
timeoutMillis- Timeout for connections mademirrors- The list of mirror URLs to try- Returns:
- The live URL
- Throws:
RuntimeException- If none of the URLs are live
-
deobfuscate
-
enableMixins
-
enableMixins
-