Skip to content

qouteall/Devoldefy

 
 

Repository files navigation

This is a fork of Devoldefy

Devoldefy

Translates MCP source code to Yarn

Changes

Fix Devoldefy bugs.

Use config file as input instead of console input.

Fix cannot remap method override with generic parameter (by some reflection hack).

It can add additional mappings. For example add this to remap client server marker

  "additionalClassMappings": {
    "net/minecraftforge/api/distmarker/OnlyIn": "net/fabricmc/api/Environment",
    "net/minecraftforge/api/distmarker/Dist": "net/fabricmc/api/EnvType"
  },

How to use it

remapforge.json is an example

How to get classpath

Add these into build.gradle

task printClasspath {
	doLast {
		configurations.compileClasspath.each { println "\""+ (it.toString().replace("\\","/")) + "\"," }
	}
}

and run gradlew printClasspath

Another method: Open minecraft in dev environment and then invoke this:

public static void printClassPath() {
    System.out.println(
        Arrays.stream(
            ((URLClassLoader) ClassLoader.getSystemClassLoader()).getURLs()
        ).map(
            url -> "\"" + url.getFile().substring(1).replace("%20", " ") + "\""
        ).collect(Collectors.joining(",\n"))
    );
}

About

Translates MCP source code to Yarn

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%