Skip to content

sschr15/what-are-enums

Repository files navigation

What Are Enums

What Are Enums, a traditional developer's worst nightmare™ (and also a library for kotlin minecraft mod developers)

Usage

In build.gradle:

repositories {
    maven {
        url 'https://maven.concern.i.ng'
    }
}

dependencies {
    implementation 'sschr15.fabricmods.concern:what-are-enums:VERSION'
}

In a file:

object MoreSoundCategories {
    @JvmStatic val CUSTOM_CATEGORY by enum(SoundCategory::class, "custom")
}

Load it at the proper time (in fabric.mod.json):

{
    "custom": {
        "whatareenums": {
            "package": "my.package.with.enum.extenders",
            "enums": {
                "net.minecraft.sound.SoundCategory": "MoreSoundCategories",
                "net.minecraft.util.Direction": "direction.ConcernDirectionChange"
            }
        }
    }
}

About

A traditional developer's worst nightmare™

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages