aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
diff options
context:
space:
mode:
authorDaniel She <shekwancheung0528@gmail.com>2019-05-12 10:55:21 +0800
committerDaniel She <shekwancheung0528@gmail.com>2019-05-12 10:55:21 +0800
commitf51e5af85e26f588cbe2eba2eef728e783201bc8 (patch)
treee490afcfe8974af8a6c65954667bf822505224d4 /src/main/java/me/shedaniel/rei/api/DisplaySettings.java
parent64c240a5a5eb6b4312b86e24ddbaaa70ada49359 (diff)
parentb99108611ea89dc0eda6c433447ce398a98ad4ad (diff)
downloadRoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.tar.gz
RoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.tar.bz2
RoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.zip
Merge branch '1.14-dev' into 1.14
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/DisplaySettings.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/DisplaySettings.java27
1 files changed, 27 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..ddf1f3a75 100644
--- a/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
+++ b/src/main/java/me/shedaniel/rei/api/DisplaySettings.java
@@ -1,13 +1,40 @@
+/*
+ * 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;
}