All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.magiclib.magiclib-minecraft-api-1.21.0-neoforge.0.6.59.source-code.ModMenuApiCompat Maven / Gradle / Ivy

//#if FABRIC
//$$ package top.hendrixshen.magiclib.api.compat.modmenu;
//$$
//$$ import com.terraformersmc.modmenu.api.ModMenuApi;
//$$ import net.minecraft.client.gui.screens.Screen;
//$$
//#if MC > 11404
//$$ import com.terraformersmc.modmenu.api.ConfigScreenFactory;
//#else
//$$ import java.util.function.Function;
//#endif
//$$
//$$ public interface ModMenuApiCompat extends ModMenuApi {
//$$     ConfigScreenFactoryCompat getConfigScreenFactoryCompat();
//$$
//$$     String getModIdCompat();
//$$
    //#if MC < 11500
    //$$ @Override
    //$$ default String getModId() {
    //$$     return this.getModIdCompat();
    //$$ }
    //#endif
//$$
//$$     @Override
//$$     default
    //#if MC > 11404
    //$$ ConfigScreenFactory getModConfigScreenFactory()
    //#else
    //$$ Function getConfigScreenFactory()
    //#endif
//$$     {
//$$         return (screen) -> this.getConfigScreenFactoryCompat().create(screen);
//$$     }
//$$
//$$     @FunctionalInterface
//$$     interface ConfigScreenFactoryCompat {
//$$         S create(Screen screen);
//$$     }
//$$ }
//#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy