Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface injection not working with kotlin #162

Open
CSneko opened this issue Dec 14, 2024 · 5 comments
Open

Interface injection not working with kotlin #162

CSneko opened this issue Dec 14, 2024 · 5 comments

Comments

@CSneko
Copy link

CSneko commented Dec 14, 2024

I followed the tutorial in https://wiki.fabricmc.net/tutorial:interface_injection ,I injected a interface for a class. I can call the method in java but I can't call the method.

@cputnam-a11y
Copy link

And all of the methods are default?

@cputnam-a11y
Copy link

cputnam-a11y commented Dec 14, 2024

Doesn't kotlin have extension funs?

@CSneko
Copy link
Author

CSneko commented Dec 15, 2024

Yes, they are default, they like this
图片
图片

@cputnam-a11y
Copy link

And you have regenerated sources and reloaded gradle?

@CSneko
Copy link
Author

CSneko commented Dec 15, 2024

Yes , I did that. I found a way to solve it,it's may be Ok.
图片
图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants