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

Support GroovyScript LSP Texture Inlays #2669

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IntegerLimit
Copy link
Contributor

What

This PR adds support for GrS's LSP texture inlays for the metaitem and oreprefix handlers, increasing consistency between GT's object mappers and GrS's, and making scripts easier to read.

Implementation Details

Metaitem and oreprefix textures are handled almost identically to GrS's (item and oredict), so it should be fine.

This is an experimental feature in GrS 1.2.0+, so considerations of maturity of the feature and of 1.2.0+ GrS versions should be considered.

Should textural inlay support be added for any of the other object mappers?

Outcome

Improves GrS integration
Happier modpack developers

Additional Information

None

Potential Compatibility Issues

None

@IntegerLimit IntegerLimit requested a review from a team as a code owner November 27, 2024 05:01
@Zorbatron Zorbatron added the integration: GrS GroovyScript integration label Nov 27, 2024
Comment on lines +279 to +281
.textureBinder(TextureBinder.of(i -> OreDictUnifier.getAll(new UnificationEntry(i)),
TextureBinder.ofItem(),
i -> String.format("![](${item('%s')}) %s", i.getItem().getRegistryName(), i.getDisplayName())))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bad idea since there are tons of items for each prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, perhaps no texture inlays for oreprefix then?

@brachy84 brachy84 added the type: feature New feature or request label Dec 1, 2024
@brachy84
Copy link
Contributor

brachy84 commented Dec 7, 2024

Im currently working on stuff on groovyscript which will conflict with this pr. Please dont merge it yet. Probably better to close and reopen later.

@IntegerLimit
Copy link
Contributor Author

I will wait for GrS, then think about the oreprefix integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration: GrS GroovyScript integration type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants