/* * Copyright © 2020 LambdAurora * * This file is part of LambdaControls. * * Licensed under the MIT license. For more information, * see the LICENSE file. */ package me.lambdaurora.lambdacontrols; import io.github.prospector.modmenu.api.ModMenuApi; import me.lambdaurora.lambdacontrols.gui.LambdaControlsSettingsScreen; import net.minecraft.client.MinecraftClient; import net.minecraft.client.gui.screen.Screen; import java.util.function.Function; /** * Represents the API implementation of ModMenu for LambdaControls. * * @author LambdAurora * @version 1.1.0 * @since 1.1.0 */ public class LambdaControlsModMenu implements ModMenuApi { @Override public String getModId() { return LambdaControls.MODID; } @Override public Function getConfigScreenFactory() { return screen -> new LambdaControlsSettingsScreen(screen, MinecraftClient.getInstance().options, false); } }