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

Registration helpers for level screen providers should be added #3926

Open
haykam821 opened this issue Jul 8, 2024 · 0 comments · May be fixed by #4118
Open

Registration helpers for level screen providers should be added #3926

haykam821 opened this issue Jul 8, 2024 · 0 comments · May be fixed by #4118

Comments

@haykam821
Copy link
Contributor

haykam821 commented Jul 8, 2024

The LevelScreenProvider.WORLD_PRESET_TO_SCREEN_PROVIDER field is initialized using Map.of; a helper similar to other Map.of helpers would be useful for mods adding their own world presets that should have a screen like superflat and single biome worlds do for customization.

An event could also be used so that mods can control multiple world presets at once.

There are two parts required for level screen providers: declaring that a button should be shown and creating the screen that is opened by activating the button.

haykam821 added a commit to haykam821/fabric that referenced this issue Sep 24, 2024
@haykam821 haykam821 linked a pull request Sep 24, 2024 that will close this issue
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 a pull request may close this issue.

1 participant