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

dev.the_fireplace.mobrebirth.entrypoints.ModMenuEntrypoint Maven / Gradle / Ivy

There is a newer version: 10.2.2+1.18.2
Show newest version
package dev.the_fireplace.mobrebirth.entrypoints;

import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;
import dev.the_fireplace.annotateddi.api.DIContainer;
import dev.the_fireplace.mobrebirth.config.MRConfigScreenFactory;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_437;

@Environment(EnvType.CLIENT)
public final class ModMenuEntrypoint implements ModMenuApi {
    private final MRConfigScreenFactory configScreenFactory = DIContainer.get().getInstance(MRConfigScreenFactory.class);

    @Override
    public ConfigScreenFactory getModConfigScreenFactory() {
        return (ConfigScreenFactory) configScreenFactory::getConfigScreen;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy