Before you can start doing anything with the Obsidian Client source code, you have to run one of these commands to initialize ForgeGradle:
-
./gradlew setupDecompWorkspaceFor normal development environments, gives you nice deobfuscated Minecraft source to work with. -
./gradlew setupDevWorkspaceLikesetupDecompWorkspace, but with obfuscated Minecraft source. -
./gradlew setupCiWorkspaceBare 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 runClientor just./gradlew runClient(You can choose whatever you want, sincebuild.gradleactually 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.gradlefile. -
Now you have to generate the run configurations yourself using this command
./gradlew genIntellijRuns.
-
Run this command
./gradlew eclipseto generate the Eclipse project files. -
Now you can open the
eclipsefolder 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: alexander@obsidian-client.com. -
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.
