Installing and initializing

Installing

To install the api to your local dev environment, add the Curse Maven repo and the DigitalityAPI dependency to your build.gradle

Curse Maven
repositories {
    maven {
        name "cursemaven"
        url "https://cursemaven.com"
    }
}
Digitality
dependencies {
    minecraft 'net.minecraftforge:forge:1.16.5-36.2.34'
    implementation fg.deobf("curse.maven:digitality-821391:4394771")
}

Don't forget your mods.toml or you might encounter some issues during runtime!

[[dependencies.your_mod_id]]
    modId="digitality"
    mandatory=true
    versionRange=","
    ordering="AFTER"
    side="BOTH"

Initializing

To initialize a new virtual pack, simply create a new VirtualResourcePack/VirtualDataPack object.

public exampleMod() {
    VirtualResourcePack resources = new VirtualResourcePack("<your mod id>");
    VirtualDataPack data = new VirtualDataPack("<your mod id>");
}

Last updated