aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-18 16:38:49 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-18 16:38:49 +0800
commit4d0b2d3f50bf56b83498a3b787ac08afaeb85eff (patch)
tree77c206a271fb6f5b6ae1dbe3d24d794420cf1841 /src/main/java/me/shedaniel/rei/api/DisplaySettings.java
parent69a531030df74768d86025cd5668e0418a3c1f07 (diff)
downloadRoughlyEnoughItems-4d0b2d3f50bf56b83498a3b787ac08afaeb85eff.tar.gz
RoughlyEnoughItems-4d0b2d3f50bf56b83498a3b787ac08afaeb85eff.tar.bz2
RoughlyEnoughItems-4d0b2d3f50bf56b83498a3b787ac08afaeb85eff.zip
up to 4x faster search
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/DisplaySettings.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/DisplaySettings.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/DisplaySettings.java b/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
index ddf1f3a75..36fa1634b 100644
--- a/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
+++ b/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
@@ -13,7 +13,7 @@ public interface DisplaySettings<T extends RecipeDisplay> {
* @param category the category of the display
* @return the height
*/
- int getDisplayHeight(RecipeCategory category);
+ int getDisplayHeight(RecipeCategory<?> category);
/**
* Gets the recipe display width
@@ -22,17 +22,19 @@ public interface DisplaySettings<T extends RecipeDisplay> {
* @param display the display of the recipe
* @return the width
*/
- int getDisplayWidth(RecipeCategory category, T display);
+ 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);
+ 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() {