Skip to content

Conversation

@ghzdude
Copy link
Contributor

@ghzdude ghzdude commented Nov 22, 2025

refactors DynamicKey to use a Supplier<IKey> instead of Supplier<String>
add a new method dynamicKey(Supplier<IKey>) to IKey
i could not name the method dynamic as generic erasure would make it clash with the Supplier<String> method
alternatively i could just call it key(Supplier<IKey>)
or maybe dynamic(Supplier<String>) could be renamed to str(Supplier<String>)
the old method would need to be kept for deprecation purposes, though

@brachy84 brachy84 merged commit 5046661 into CleanroomMC:master Nov 25, 2025
brachy84 pushed a commit to brachy84/ModularUI2-GTNH that referenced this pull request Nov 27, 2025
* make DynamicKey take in IKeys instead of just string

* don't return formatted text in get()
fix formatting issues

(cherry picked from commit 5046661)
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.

3 participants