Skip to content
IchHabeHunger54 edited this page Jun 16, 2023 · 2 revisions

Welcome to the EasyDatagenLib wiki! This is where you will find information for using EasyDatagenLib.

Adding the maven

EasyDatagenLib is hosted on the Minecraftschurli maven, so in order to use it, you'll need to tell your buildscript to use this maven.

repositories {
    //other repositories here
    maven {
        name = 'Minecraftschurli Maven'
        url = 'https://minecraftschurli.ddns.net/repository/maven-public/'
        content {
            includeGroup 'com.github.minecraftschurlimods'
        }
    }
}

Setup

Then, in order to actually include EasyDatagenLib in your project, add the following lines to your build.gradle:

dependencies { //replace version numbers where needed
    include fg.deobf('com.github.minecraftschurlimods:easydatagenlib:1.19.2-1.1.1-SNAPSHOT') {
        jarJar.ranged(it, '[1.19.2-1.1.1-SNAPSHOT,)')
    }
}

Setup with multiple source sets

If you don't have multiple source sets, you can skip this section. If you're not sure whether you have multiple source sets, you most likely do not.

For separate API source sets, you can only include the API part of EasyDatagenLib. This will give you access to the abstract base classes, such as AbstractDataProvider and AbstractDataBuilder, but not CompatDataProvider or the various mod-specific providers.

dependencies { //replace version numbers where needed
    compile fg.deobf('com.github.minecraftschurlimods:easydatagenlib:1.19.2-1.1.1-SNAPSHOT:api')
}

If you have a separate datagen source set, it might be worth configuring your buildscript to only include EasyDatagenLib during datagen. That way, if you do not reference any EasyDatagenLib classes outside of a datagen context, you do not need to ship the library with the final mod.

Clone this wiki locally