mirror of
https://github.com/PuzzleMC/Puzzle.git
synced 2025-12-15 19:35:10 +01:00
Fix #18 Fix #17 Fix #13 Russian translations by @Felix14-v2 German translations by @2020Sanoj
31 lines
1.1 KiB
Java
Executable File
31 lines
1.1 KiB
Java
Executable File
package net.puzzlemc.gui.config;
|
|
|
|
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
|
import com.terraformersmc.modmenu.api.ModMenuApi;
|
|
import net.puzzlemc.gui.screen.PuzzleOptionsScreen;
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class ModMenuIntegration implements ModMenuApi {
|
|
@Override
|
|
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
|
return PuzzleOptionsScreen::new;
|
|
}
|
|
|
|
//Used to set the config screen for all modules //
|
|
@Override
|
|
public Map<String, ConfigScreenFactory<?>> getProvidedConfigScreenFactories() {
|
|
Map<String, ConfigScreenFactory<?>> map = new HashMap<>();
|
|
map.put("puzzle-gui",PuzzleOptionsScreen::new);
|
|
map.put("puzzle-blocks",PuzzleOptionsScreen::new);
|
|
map.put("puzzle-base",PuzzleOptionsScreen::new);
|
|
map.put("puzzle-models",PuzzleOptionsScreen::new);
|
|
map.put("puzzle-splashscreen",PuzzleOptionsScreen::new);
|
|
map.put("puzzle",PuzzleOptionsScreen::new);
|
|
return map;
|
|
}
|
|
} |