aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
blob: 6eb5ef5a659242f3fd823145543919650dfc2903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package me.shedaniel.rei.api;

public interface DisplaySettings<T extends RecipeDisplay> {
    
    int getDisplayHeight(RecipeCategory category);
    
    int getDisplayWidth(RecipeCategory category, T display);
    
    int getMaximumRecipePerPage(RecipeCategory category);
    
    default int getFixedRecipesPerPage() {
        return -1;
    }
    
    default VisableType canDisplay(T display) {
        return VisableType.ALWAYS;
    }
    
    public static enum VisableType {
        ALWAYS, PASS, NEVER;
    }
    
}