This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-03-21 15:49:58 +00:00
|
|
|
package com.thebrokenrail.sorcerycraft.client;
|
|
|
|
|
|
|
|
import com.thebrokenrail.sorcerycraft.ModConfig;
|
|
|
|
import com.thebrokenrail.sorcerycraft.SorceryCraft;
|
|
|
|
import io.github.prospector.modmenu.api.ConfigScreenFactory;
|
|
|
|
import io.github.prospector.modmenu.api.ModMenuApi;
|
|
|
|
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
|
2020-03-24 17:05:03 +00:00
|
|
|
import net.fabricmc.api.EnvType;
|
|
|
|
import net.fabricmc.api.Environment;
|
2020-03-21 15:49:58 +00:00
|
|
|
import net.minecraft.client.gui.screen.Screen;
|
|
|
|
|
2020-03-24 17:05:03 +00:00
|
|
|
@SuppressWarnings("unused")
|
|
|
|
@Environment(EnvType.CLIENT)
|
2020-03-21 15:49:58 +00:00
|
|
|
public class ModMenu implements ModMenuApi {
|
|
|
|
@Override
|
|
|
|
public String getModId() {
|
|
|
|
return SorceryCraft.NAMESPACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
|
|
|
return (ConfigScreenFactory<Screen>) screen -> AutoConfig.getConfigScreen(ModConfig.class, screen).get();
|
|
|
|
}
|
|
|
|
}
|