Repository navigation
Conversation
Replace the Java sources with a Kotlin translation of the same classes, 1:1 in package, class and file layout. No behaviour changes intended: the JVM API surface (field names, static members, accessors) is kept identical so mixins, resources and config files continue to work. Build changes: - add the Kotlin JVM plugin (2.4.21) and compile with jvmTarget 25 - depend on fabric-language-kotlin (required to load Kotlin entrypoints) - register the two accessor mixins the Kotlin tree needs (AccessorWindow, AccessorClientCommonPacketListener) fabric.mod.json, shaders and all assets are unchanged from the 26.3 Java tree. Validated: ./gradlew build passes, including the existing JUnit suite.
Author
|
clicking on gui is broken. for the rest everything should be fully ported and fixed. |
Owner
|
no thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the Java sources with a Kotlin translation, 1:1 in package, class and file layout. No behaviour changes intended: the JVM API surface (field names, static members, accessor methods) is kept identical so mixins, resources and existing config files continue to work unchanged.
Build changes only:
jvmTarget = 25fabric-language-kotlin, which is required to load Kotlin entrypointsAccessorWindow,AccessorClientCommonPacketListener)One real fix came out of the port: mouse buttons are compared with
InputConstants.MOUSE_BUTTON_*instead of raw numbers. 26.3 reports SDL button ids (left = 1, right = 3), so the GLFW-styleleft = 0checks treated every left click as a right click.fabric.mod.json, shaders and all assets are unchanged from the 26.3 Java tree.Validation
./gradlew buildpasses on JDK 25, including the existing JUnit suiteNotes
This is a large mechanical diff, so it is probably easier to review the build/resource changes and spot-check a few packages than to read it end to end.