mod_development:decompiling
This is an old revision of the document!
Table of Contents
Preface
Minecraft uses a programming language called Java. The advantages of this are that it works on many kinds of systems and that it is fairly easy to decompile and modify. All(?) the Minecraft code is stored inside a JAR file (Java ARchive) which contains class files (compiled JAVA files). These class files are obfuscated which means that the purpose of the code within has been concealed. This code must be decompiled and deobfuscated in order to be modified. 1)
Requirements
- JDK (Java Development Kit). Version 8 is recommended.
One of:
Process
After installing JDK, follow the instructions below depending on your choice of coder pack.
LTS
- Export your LTS-master.zip to somewhere sensible (this will contain all your development files).
- In the newly exported folder, run setup.bat or setup.sh depending on your OS (Use .bat on Windows).
- Enter 'y' in the newly opened console to confirm the action.
- Choose the version you wish to compile by entering it's name.
- After it is finished you may need to refresh the folder to see the new files.
- (Optional) If decompiling a mod, apply it to the relevant jar in the jars folder.
- Run the decompile.bat/sh file that has generated.
MCP
TODO
1)
You can edit class files directly with bytecode editing but this is a difficult alternative only useful in certain circumstances.
mod_development/decompiling.1573708959.txt.gz · Last modified: 2019/11/14 05:22 by rek