Fabric API

Fabric API

111M Downloads

Registration helpers for level screen providers should be added

haykam821 opened this issue ยท 0 comments

commented

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.