Skip to content

How do I use .java files and recompile the code? #161

Closed Answered by XiaoPangxie732
jungltemple asked this question in Q&A
Discussion options

You must be logged in to vote

How do I decompile the code into .java files rather than .class files, so that I can edit them directly in IntelliJ?

Run MCD with your args and -r -d

And how do I run the decompiled code? It doesn't come with Gradle by default, so I'm a bit confused.

You need to figure out it yourself. Providing a useable workspace is not the goal of MCD. And usually the decompiled code cannot be directly recompiled because it contains errors. Maybe you should use MCP-Reborn instead.

Also, for some reason my decompiled 1.21.1 code doesn't have the net.minecraft.client.Main class, which is the entrypoint listed in the MANIFEST.MF file.

It is probably a bug, I'll figure it out asap

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jungltemple
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants