aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/REIModMenuEntryPoint.java
blob: 5c04233d231fb96c97161c214d9a850d21099ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Roughly Enough Items by Danielshe.
 * Licensed under the MIT License.
 */

package me.shedaniel.rei;

import io.github.prospector.modmenu.api.ModMenuApi;
import me.shedaniel.rei.api.ConfigManager;
import net.minecraft.client.gui.screen.Screen;

import java.util.function.Function;

public class REIModMenuEntryPoint implements ModMenuApi {
    
    @Override
    public String getModId() {
        return "roughlyenoughitems";
    }
    
    @Override
    public Function<Screen, ? extends Screen> getConfigScreenFactory() {
        return parent -> ConfigManager.getInstance().getConfigScreen(parent);
    }
    
}