elytra-lock-fabric/remappedSrc/xyz/devcomp/elytralock/integrations/ModMenuIntegration.java

19 lines
611 B
Java

package xyz.devcomp.elytralock.integrations;
import xyz.devcomp.elytralock.ElytraLock;
import xyz.devcomp.elytralock.config.ConfigHandler;
import xyz.devcomp.elytralock.config.ConfigUtil;
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;
public class ModMenuIntegration implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return (parent) -> {
if (!ConfigUtil.isYaclLoaded())
return parent;
return ElytraLock.config.showGui(parent);
};
}
}