Kotlin for Forge
This mod enables creating Minecraft modifications using the modern Kotlin programming language. It provides all necessary tools and libraries for comfortable development with this language.
Core Features
The mod includes the complete Kotlin libraries version 1.4.21, plus additional modules:
- Kotlin coroutines version 1.4.2 for asynchronous programming
- JSON serialization version 1.0.1 for data handling
- Jetbrains annotations version 20.1.0
Implementation Details
Unlike other solutions like Kottle, this library offers its own implementation of the event system (IEventBus), supporting modern approaches to function handling through addListener and addGenericListener mechanisms.
Intended Audience
IMPORTANT: This mod is a dependency and is only needed by developers. If you're just playing Minecraft, you don't need to install it separately - it will be automatically loaded with mods that depend on it.
Usage Flexibility
You can use all mod features together or individual components. The platform provides:
- Loader for classes with @Mod annotation
- Automatic registration of event subscribers with @EventBusSubscriber
- Useful utility functions and constants
But if you only need the Kotlin libraries - you can limit yourself to this functionality without using additional tools.