The "story" of Fabric Kotlin is about bridging these two worlds. The Problem: Speaking Two Languages
// Now you can call it directly if (player.hasDiamond()) ...
Kotlin allows you to add methods to existing classes without inheriting from them. This is magical for Minecraft modding. Want to add a method to the PlayerEntity class to check for a specific inventory item? You don't need a mixin or a wrapper class.
Fabric Kotlin !full! Page
The "story" of Fabric Kotlin is about bridging these two worlds. The Problem: Speaking Two Languages
// Now you can call it directly if (player.hasDiamond()) ... fabric kotlin
Kotlin allows you to add methods to existing classes without inheriting from them. This is magical for Minecraft modding. Want to add a method to the PlayerEntity class to check for a specific inventory item? You don't need a mixin or a wrapper class. The "story" of Fabric Kotlin is about bridging