diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-05-12 01:32:04 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-05-12 01:32:04 +0800 |
| commit | 357388d49c306a288f2c56cb6f25589237f7284e (patch) | |
| tree | dc6e3a35c247733231a62b1702adbc6f5a4b165c /src/main/java/me/shedaniel/rei/api/DisplaySettings.java | |
| parent | aa916b6d14d62e062fec49c378e0f62b254c83ae (diff) | |
| download | RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.gz RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.bz2 RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.zip | |
Small documentations
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/DisplaySettings.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/DisplaySettings.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/DisplaySettings.java b/src/main/java/me/shedaniel/rei/api/DisplaySettings.java index 334d6cc6f..ad9468bd2 100644 --- a/src/main/java/me/shedaniel/rei/api/DisplaySettings.java +++ b/src/main/java/me/shedaniel/rei/api/DisplaySettings.java @@ -2,12 +2,34 @@ 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; } |
