Fabric language module for Clojure. Adds support for Clojure exclusive entrypoints (TODO) and bundles the Clojure’s standard library.
Add it as a dependency to your Gradle project: (TODO)
Use the clojure
adapter for your mod by setting the adapter
property in the fabric.mod.json
file.
Remember to the add a dependency entry to your fabric.mod.json
file:
{
"schemaVersion": 1,
"entrypoints": {
"main": [
{
"adapter": "clojure",
"value": "namespace/var"
}
]
},
"depends": {
"fabric-language-clojure": "*"
}
}
For more info reference the fabric.mod.json documentation.
Do not forget to set the schemaVersion
to 1
or it will fall back to schema 0
and will not attempt to load entrypoints.
Kind | Entrypoint definition | Code |
---|---|---|
Class reference |
"mymod.MyMod" or {
"adapter": "clojure",
"value": "mymod.MyMod"
} (TODO) |
(ns mymod
(:gen-class
:name mymod.MyMod
:implements [net.fabricmc.api.ModInitializer]))
(defn -onInitialize [_]) ; TODO |
Function reference (TODO) |
{
"adapter": "clojure",
"value": "mymod/init"
} |
(ns mymod)
(defn init []) ; TODO |
org.clojure
namespace:
TODO
TODO
- Update the readme in
templates/README.template.md
. - Run
./gradlew processMDTemplates
.