mirror of
https://github.com/chylex/Java-Checker.git
synced 2025-06-11 13:34:04 +02:00
Update README.md
This commit is contained in:
parent
abc0d3d959
commit
8dbc15835b
15
README.md
15
README.md
@ -2,15 +2,15 @@ If you want to use it for your own projects, you can download it on Curse (http:
|
||||
|
||||
The mod is in Public Domain, feel free to do whatever you want with it! Hugs and mentions appreciated but not required.
|
||||
|
||||
## Shading Java 8 Checker into your mod
|
||||
## 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 get a modified version of the Java Checker mod, and place it in the **libs** folder of your mod setup.
|
||||
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 download a special version designed for shading, you can find it on [CurseForge](http://minecraft.curseforge.com/projects/java-version-checker/files/2262108).
|
||||
|
||||
You can download [Java 8+](https://www.dropbox.com/s/gmd4xgr1iygpjxo/Java8Checker%20%20MC-1.7.10%20%20v1.1-shade.jar?dl=1) or [Java 7+](https://www.dropbox.com/s/4qehcjnach7dy6t/Java7Checker%20%20MC-1.7.10%20%20v1.1-shade.jar?dl=1) checkers. Currently they are both for 1.7.10 only, there will be a more proper update later (the currently released versions have a bug that prevents shading).
|
||||
This file will work fine for all Minecraft versions starting from 1.6.2. It can currently check for Java 7 or 8, based on how you configure it.
|
||||
|
||||
Then you need to configure your **build.gradle** file to shade the checker into your own mod files. Use this as a guide, make sure to update everything in <> brackets.
|
||||
In order to shade and configure Java Checker, you need to update your **build.gradle** file. Use this as a guide, make sure to update everything in <> brackets.
|
||||
|
||||
```
|
||||
configurations{
|
||||
@ -21,7 +21,7 @@ configurations{
|
||||
<your buildscript info is somewhere here>
|
||||
|
||||
dependencies{
|
||||
shade files('libs/Java<version>Checker MC-1.7.10 v1.1-shade.jar')
|
||||
shade files('libs/JavaCheckerShade MC-UNIVERSAL v1.2.jar')
|
||||
}
|
||||
|
||||
<your mod info is somewhere here>
|
||||
@ -38,12 +38,11 @@ jar{
|
||||
}
|
||||
|
||||
manifest{
|
||||
attributes 'FMLCorePlugin': '<yourmodname>.shade.javacheck.Java<version>CheckerCoremod'
|
||||
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
||||
attributes 'TweakClass': '<yourmodname>.shade.javacheck.Java<version>Checker'
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
You can also use [Hardcore Ender Expansion's build.gradle](https://github.com/chylex/Hardcore-Ender-Expansion/blob/master/build.gradle) as a reference.
|
||||
|
||||
Now build the mod and run it to make sure nothing messed up. If you need help with something, ask AbrarSyed because I have absolutely no idea what I'm doing :P.
|
||||
Now build the mod and run it to make sure nothing messed up. If you need help with something related to build.gradle, ask AbrarSyed because I have absolutely no idea what I'm doing :P.
|
||||
|
Loading…
Reference in New Issue
Block a user