nineMinecraft is a joke site.
nineMinecraft is in no way affiliated with Modrinth or 9minecraft. (And frankly, who wants to be affiliated with the latter?)
KotlinLangForge

KotlinLangForge

Mod

Provides a Kotlin language adapter for Forge and Neoforge

Client and server Library

868 downloads
1 follower

KotlinLangForge

Provides a Kotlin language adapter for Forge and Neoforge

This mod adds a language adapter for Kotlin and provides multiple libraries.

Developer usage

To add your language adapter to your mod, add the following lines to your (neoforge.)mods.toml.

mods.toml

modLoader = "klf"
loaderVersion = "[1,)"

Now you can init your mod like any other. Just make sure your @Mod class is either a object or a class with a public and empty constructor.

If you want to implement the libraries in your mod, just import the following dependency, matching your version of Minecraft, your loader and the (latest) version of Kotlin.

build.gradle.kts

repositories {
  maven("https://repo.nyon.dev/releases")
}

dependencies {
  modImplementation("dev.nyon:KotlinLangForge:$version-$kotlinVersion-$mcVersion+$loader")
}

Mod Bus

To use the mod bus, just implement dev.nyon.klf.MOD_BUS.

Libraries

  • org.jetbrains.kotlin:kotlin-stdlib
  • org.jetbrains.kotlin:kotlin-stdlib-jdk8
  • org.jetbrains.kotlin:kotlin-stdlib-jdk7
  • org.jetbrains.kotlin:kotlin-reflect
  • org.jetbrains.kotlinx:kotlinx-serialization-core
  • org.jetbrains.kotlinx:kotlinx-serialization-json
  • org.jetbrains.kotlinx:kotlinx-serialization-cbor
  • org.jetbrains.kotlinx:kotlinx-coroutines-core
  • org.jetbrains.kotlinx:kotlinx-coroutines-jdk8
  • org.jetbrains.kotlinx:kotlinx-datetime
  • org.jetbrains.kotlinx:kotlinx-io-core
  • org.jetbrains.kotlinx:kotlinx-io-bytestring
  • org.jetbrains.kotlinx:atomicfu

Other

If you need help with any of my mods just join my discord server.

External resources


Project members

btwonion

Member


Technical information

License
GPL-3.0-only
Client side
required
Server side
required
Project ID