To use ForgeEssentials and its powerful permission framework with from another mod, please take a look at the developer documentation in the wiki.
- Download ForgeEssentials with git
- Run ForgeGradle setup
(E.g.,
./gradlew setupDecompWorkspace eclipse
when using eclipse) - Configure the annotation processor as outlined below
- Add ``-Dmixin.env.compatLevel=JAVA_7` to VM Options for both server and client
- Add
--tweakClass com.forgeessentials.core.preloader.FELaunchHandler --mixin mixins.forgeessentials.json
to the launch arguments of the server - Add
--tweakClass com.forgeessentials.core.preloader.FELaunchHandler --mixin mixins.forgeessentials.json --tweakClass org.spongepowered.asm.launch.MixinTweaker --mixin mixins.forgeessentials.client.json
to the launch arguments of the client
If you open ForgeEssentials in your IDE, you must turn on annotation processing, or your IDE will complain that it cannot find classes like Action_
. You also might need to manually add hibernate-jpamodelgen-4.3.7.jar
as annotation processor. Please refer to the respective IDE documentation on how to do this.
- Go to
Project Properties
>Java Compiler
>Annotation processing
- Check
Enable annotation processing
- Check
- Go to
Project Properties
>Java Compiler
>Annotation processing
>Factory Path
- Add the
hibernate-jpamodelgen-4.3.7.jar
.
To find its location, check the referenced libraries in the project settings. It should be located somewhere in
$HOME/.gradle/caches/modules-2/files-2.1/org.hibernate/hibernate-jpamodelgen/4.3.7.Final
- Add the
- Go to
Settings > Build, Execution and Deployment > Compiler > Annotation Processors
- Check
Enable annotation processing
- Check
Obtain processors from project classpath
- Enter
.apt_generated
as "Production sources directory" - Under
Annotation Processors
, add this fully qualified name:org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor
- Run
Build > Rebuild Project
- Right click
.apt_generated
directory and selectMark as > Source directory
- Please consider squashing all commits before initially submitting pull requests
- For a local
.gitignore
use.git/info/exclude
- If you have any questions, join us on IRC