Adding RiftLibrary to your Project - Rift-Modding-Group/RiftLibrary GitHub Wiki
Importing Into your Project
As of the writing of this page, RiftLibrary isn't available on any Maven repository, so it is highly recommended to compile this project before doing so.
- In the root of your mod, create a folder called "lib"
- Put the compiled .jar file of the mod there
- In the dependencies section of your build.gradle file, add the following:
compileOnly files("lib/<name of RiftLibrary jar file>.jar")
Initializing
Similar to GeckoLib, RiftLibrary requires you to add an initialize method in the FMLInitializationEvent
event. In this case, its RiftLib.initialize()
.