/fabric-language-scala

Fabric language module for Scala.

Primary LanguageScalaApache License 2.0Apache-2.0

fabric-language-scala

Fabric language module for Scala. Adds support for using a Scala object as the main mod class and bundles the Scala libraries for you.

Usage

Add it as a dependency:

dependencies {
	modImplementation "net.fabricmc:fabric-language-scala:0.3.1.+"
}

Specify your entrypoint in your fabric.mod.json like so:

"entrypoints": {
    "main": [
        {
            "adapter": "scala",
            "value": "package.ClassName"
        }
    ]
}

Add a dependency entry to your fabric.mod.json file:

{
    "requires": {
        "fabric-language-scala": "*"
    }
}