https://github.com/witixin1512/accessconverter
A repository for hosting a gradle script to automatically convert an AccessWidener into an AccessTransformer for MultiLoader environments
https://github.com/witixin1512/accessconverter
fabric forge minecraft multiloader quilt
Last synced: 20 days ago
JSON representation
A repository for hosting a gradle script to automatically convert an AccessWidener into an AccessTransformer for MultiLoader environments
- Host: GitHub
- URL: https://github.com/witixin1512/accessconverter
- Owner: Witixin1512
- License: mit
- Created: 2022-12-02T16:06:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-14T12:11:03.000Z (over 2 years ago)
- Last Synced: 2026-01-03T22:05:59.096Z (4 months ago)
- Topics: fabric, forge, minecraft, multiloader, quilt
- Language: Java
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AccessConverter
A Gradle Plugin for automatically converting from Access Wideners to Access Transformers and viceversa.
Apply the plugin the following way, ideally in your rootProject buildscript, outside the `subprojects` block:
```groovy
plugins {
id 'witixin.accessconverter' version '1.0.+'
}
accessConverter {
mcVersion "1.19.3"
//Converts the AccessWidener found at the fileToConvert location into an accesstransformer dropped into the fileToOutput location.
convertAW {
//optional, sorts the input file
it.sortInput(true)
it.fileToConvert(project(':Common').file("/src/main/resources/${modid}.accesswidener"))
it.fileOutput(project(":Forge").file("/src/main/resources/META-INF/accesstransformer.cfg"))
}
//Does the opposite, converts an AT into AW.
convertAT {
//optional sorts the input file
it.convertFrom(rootProject.file("testtransformer.cfg"))
it.saveConversionTo(rootProject.file("outputwidener.accesswidener"))
it.sortInput(true)
}
//It is not recommended to have both configurations enabled nor to have one of them depend on the files of the other one.
//Keep it mind convertAW is fired first and then convertAT
}
```
The plugin requires java 17 and only supports MC 1.18.2 and above!
As of 1.0.+, you NEED to import a Forge Workspace (so it caches required files) with official mappings (parchment won't work) BEFORE refreshing your MultiLoader workspace!