blob: 36fa1634b3707c1db153894ce5068d5d2136f35e (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* Roughly Enough Items by Danielshe.
* Licensed under the MIT License.
*/
package me.shedaniel.rei.api;
public interface DisplaySettings<T extends RecipeDisplay> {
/**
* Gets the recipe display height
*
* @param category the category of the display
* @return the height
*/
int getDisplayHeight(RecipeCategory<?> category);
/**
* Gets the recipe display width
*
* @param category the category of the display
* @param display the display of the recipe
* @return the width
*/
int getDisplayWidth(RecipeCategory<?> category, T display);
/**
* Gets the maximum amount of recipe displays of the category displayed at the same time.
*
* @param category the category of the displays
* @return the maximum amount
*/
int getMaximumRecipePerPage(RecipeCategory<?> category);
/**
* Gets the fixed amount of recipes per page.
*
* @return the amount of recipes, returns -1 if not fixed
*/
default int getFixedRecipesPerPage() {
return -1;
}
}
|