Before you can start doing anything with the Obsidian Client source code, you have to run one of these commands to initialize ForgeGradle:
-
./gradlew setupDecompWorkspace
For normal development environments, gives you nice deobfuscated Minecraft source to work with. -
./gradlew setupDevWorkspace
LikesetupDecompWorkspace
, but with obfuscated Minecraft source. -
./gradlew setupCiWorkspace
Bare minimum to build Obsidian Client, ideally for CI servers.
To build Obsidian Client, run
./gradlew jar
or for production purposes you should use this command instead
./gradlew reobfJar
.
Both commands will also automatically download all dependencies for you.
The output Java Archive will be in build/libs/
.
To run Obsidian Client, there are two commands you can use:
-
For Vanilla Minecraft, use
./gradlew -b build.gradle runClient
or just./gradlew runClient
(You can choose whatever you want, sincebuild.gradle
actually is the default buildscript). -
For Minecraft Forge, use
./gradlew -b buildForge.gradle runClient
.
Both commands will download all dependencies, compile everything and run the game.
-
Open IntelliJ and import / open the project by selecting the
build.gradle
file. -
Now you have to generate the run configurations yourself using this command
./gradlew genIntellijRuns
.
-
Run this command
./gradlew eclipse
to generate the Eclipse project files. -
Now you can open the
eclipse
folder inside of Eclipse.
Feel free to contribute to this project by opening a pull request under the following rules:
-
Write clean and organised code with Javadoc documentation.
-
Try to adopt existing mechanisms, I don't want to end up 3
ModuleManagers
. But if you want to improve existing mechanisms (like theModuleManager
), contact me: [email protected]. -
Write code that fits perfectly into the existing one, so nothing looks out of place (especially important for the GUI's). I recommend you to take a look at other existing classes (with similar content) for refrence.