gradle/wrapper | ||
src/main | ||
.gitignore | ||
build.gradle | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
README.md |
You can download latest versions of Java Checker on CurseForge:
http://minecraft.curseforge.com/projects/java-version-checker
The mod is in Public Domain, so do whatever you want with it! Hugs and mentions appreciated but not required. If you want to include Java Checker in your own mod, read the shading guide.
Shading Java Checker into your mod
Warning: this is experimental, if you find any issues, please report them immediately.
You can insert Java Checker into your mod, so that it will alert the user if they are using outdated Java. You will need to use a special version designed for shading, you can use tterrag's Maven repository in your build.gradle or download it manually.
The shading library should work fine for all Minecraft versions since 1.6.2. It can currently check for Java 7 or 8, based on how you configure it.
In order to shade and configure Java Checker, you need to update your build.gradle file. Use the following links as a guide, make sure to update everything in the <> brackets.
ForgeGradle 1.2 (Minecraft 1.7.10 and older)
ForgeGradle 2.1 (Minecraft 1.8 and newer)
You can also use Hardcore Ender Expansion's build.gradle as a reference.
Now build the mod and run it to make sure nothing messed up. If the mod does not load, something might have changed in Forge which breaks a hack in the shading library. In that case, create a new issue and I will release an update.
If you need help with something related to build.gradle, ask AbrarSyed because I have absolutely no idea what I'm doing :P.