FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

introduce scoped registry holder using PhaseTracker by Faithcaio · Pull Request #2584 · SpongePowered/SpongeAPI · GitHub

introduce scoped registry holder using PhaseTracker - #2584

Merged
Faithcaio merged 1 commit into
api-14from
feature/scopedregistryholder
Mar 29, 2025
Merged

introduce scoped registry holder using PhaseTracker#2584
Faithcaio merged 1 commit into
api-14from
feature/scopedregistryholder

Conversation

Faithcaio commented Mar 26, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

SpongeAPI | Sponge

Adds RegistryKey#asScopedReference
and RegistryType#asScopedType
which uses the current Cause to determine an appropiate RegistryHolder
if none is found it falls back to Server if available else to Game

This allows early access to registries available after Game but before Server.
E.g. EnchantmentTypes during registration for recipes.

Copy link
Copy Markdown
Contributor

Server DefaultedRegistryTypes should probably use scoped registry holder as well

Faithcaio force-pushed the feature/scopedregistryholder branch from 4bd89eb to 53b9cfe Compare March 27, 2025 17:07
Faithcaio merged commit 69b4c97 into api-14 Mar 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL