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

Add JEI bridge #22

Merged
merged 2 commits into from
Jan 1, 2024
Merged

Add JEI bridge #22

merged 2 commits into from
Jan 1, 2024

Conversation

Abbie5
Copy link
Contributor

@Abbie5 Abbie5 commented Dec 26, 2023

Marking as draft as it currently doesn't seem to relocate/inject API classes properly, help would be appreciated :)

@Su5eD
Copy link
Member

Su5eD commented Dec 26, 2023

Sure, I can have a look at that part. Is there anything else required to bridge the APIs?

@Abbie5
Copy link
Contributor Author

Abbie5 commented Dec 26, 2023

No I checked those are the only classes exclusive to the JEI Fabric API (https://github.com/mezz/JustEnoughItems/tree/1.20/FabricApi/src/main/java/mezz/jei/api/fabric)

@Abbie5
Copy link
Contributor Author

Abbie5 commented Dec 26, 2023

Ah I may have misunderstood, I tested this and the plugin loading worked fine, the only issue was the JEI Fabric API classes not being loaded with log messages such as java.lang.ClassNotFoundException: mezz.jei.api.fabric.constants.FabricTypes

@Su5eD Su5eD self-assigned this Dec 26, 2023
@Su5eD Su5eD added the enhancement New feature or request label Dec 30, 2023
@Su5eD
Copy link
Member

Su5eD commented Dec 30, 2023

The relocation code can be safely removed. JEI puts its fabric-specific classes in a unique mezz.jei.api.fabric package, which doesn't exist on the forge version, and therefore it won't cause issues unlike the emi bridge.

@Abbie5
Copy link
Contributor Author

Abbie5 commented Dec 30, 2023

Ah that's a relief

@Abbie5 Abbie5 marked this pull request as ready for review December 30, 2023 20:13
@Su5eD Su5eD merged commit 7c50668 into Sinytra:master Jan 1, 2024
1 check passed
@Abbie5 Abbie5 deleted the jei-bridge branch January 1, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants