What are you searching for?

Kotlin for Forge

Kotlin for Forge

Adds a Kotlin language loader and provides some optional utilities.

download 23.0M Downloads · favorite 711 Followers · Updated 3 weeks ago
Forge Library Neoforge 1.14 1.14.1 1.14.2 1.14.3 1.14.4 +38 more

Versions

inventory_2
Kotlin for Forge 5.11.0

5.11.0 · 3 weeks ago · 6.55 MB

Release download
Forge Neoforge 1.20.6 1.21 1.21.1
inventory_2
Kotlin for Forge 6.1.0

6.1.0 · 3 weeks ago · 6.55 MB

Release download
Neoforge 1.20.6 1.21 1.21.1
inventory_2
Kotlin for Forge 4.12.0

4.12.0 · 2 months ago · 7.10 MB

Release download
Forge Neoforge 1.19.3 1.19.4 1.20
inventory_2
Kotlin for Forge 6.0.0

6.0.0 · 3 months ago · 6.42 MB

Release download
Forge Neoforge 1.21.9 1.21.10 1.21.11
inventory_2
Kotlin for Forge 5.10.0

5.10.0 · 4 months ago · 6.42 MB

Release download
Forge Neoforge 1.20.6 1.21 1.21.1

About

Used to make mods with the Kotlin programming language. Works by shading the Kotlin libraries, providing KotlinLanguageProvider to load @Mod object declarations, providing AutoKotlinEventBusSubscriber to load @EventBusSubscriber declarations, and providing useful utility functions and constants.

As of Kotlin for Forge 1.8.0, this provides Kotlin 1.4.21, Kotlin coroutines 1.4.2, Kotlin JSON serialization 1.0.1, and Jetbrains annotations 20.1.0.

If you're not a mod developer, this is a dependency mod.

Unlike Kottle, this library (as of 1.2.0) provides its own implementation of IEventBus that supports IEventBus#addListener and IEventBus#addGenericListener with function references.

Information for how to implement can be found here. You do not have to use the language loader or any of the features Kotlin for Forge provides, you can just use it for the bundled Kotlin libraries.

If you'd like to ask for help or suggest something, feel free to do so on the Kotlin for Forge discord server.

open_in_new View on Modrinth
Categories
Compatibility
Client: Optional Server: Optional
gavel LGPL-2.1-only

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 127.9M
favorite 27,365
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.0M
favorite 13,653
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 65.8M
favorite 7,589
Library
Architectury API
Architectury API

by shedaniel

An intermediary api aimed to ease developing multiplatform mods.

download 60.8M
favorite 6,641
lock Cookie consent

SkinMC uses cookies to provide functionality and features.