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

Registry aliasing #4231

Merged
merged 11 commits into from
Dec 12, 2024
Merged

Registry aliasing #4231

merged 11 commits into from
Dec 12, 2024

Conversation

Syst3ms
Copy link
Contributor

@Syst3ms Syst3ms commented Nov 15, 2024

Adds a small API to add aliases to registries, useful for when mods want to change IDs without losing compatibility with existing saves, and without having to resort to datafixer hacks.

The API just consists of a new FabricRegistry interface, implemented on all Registry instances via interface injection, with an addAlias method.

@Syst3ms Syst3ms requested review from a team November 16, 2024 14:56
Copy link
Member

@modmuss50 modmuss50 left a comment

Choose a reason for hiding this comment

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

Looks like a great start, nothing drastic stands out.

@modmuss50 modmuss50 added last call If you care, make yourself heard right away! enhancement New feature or request registry-sync Pull requests and issues related to registry sync labels Dec 5, 2024
@modmuss50 modmuss50 added the merge me please Pull requests that are ready to merge label Dec 12, 2024
@modmuss50 modmuss50 merged commit e2e49f7 into FabricMC:1.21.3 Dec 12, 2024
4 checks passed
modmuss50 pushed a commit that referenced this pull request Dec 12, 2024
* initial

* style

* tests + more input checking

* revert formatting

* requests + more tests

* testmod

* check not frozen

* Fixes

* throw on default impl

* optimize implementation

---------

Co-authored-by: modmuss50 <[email protected]>
(cherry picked from commit e2e49f7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request last call If you care, make yourself heard right away! merge me please Pull requests that are ready to merge registry-sync Pull requests and issues related to registry sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants