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

Preview Item Tags #94

Merged
merged 2 commits into from
Sep 25, 2024
Merged

Preview Item Tags #94

merged 2 commits into from
Sep 25, 2024

Conversation

RedVortexDev
Copy link
Member

Adds a keybind that shows item tags made in DiamondFire when held, strings in aqua, numbrs in red, other in DiamondFire's Any Value color.

@GeorgeRNG GeorgeRNG mentioned this pull request Sep 25, 2024
17 tasks
@@ -111,6 +118,33 @@ public void onInitializeClient() {
Commands.register(dispatcher);
});

ItemTooltipCallback.EVENT.register((stack, context, lines) -> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if I want to keep CodeClient consistently not using fabric APIs, or turn cc into a weird mix of fabric apis and mixins for which fabric can't provide for.
We probably should move towards the second one for "correctness" and compatibility sake

Copy link
Member Author

@RedVortexDev RedVortexDev Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know we were doing that lol, fabric api is a standard and a dependency of all mods, it would be more unconventional to use YACL than fapi, we should be using the api as it allows us to register into events without thinking much while not accidentally interfering with other mods. "mix of fabric api and mixins" is basically what every mod is like

@RedVortexDev RedVortexDev merged commit cad4d43 into main Sep 25, 2024
@RedVortexDev RedVortexDev deleted the feat/preview-item-tags branch September 25, 2024 15:46
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

Successfully merging this pull request may close these issues.

2 participants