aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-05-12 01:32:04 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-05-12 01:32:04 +0800
commit357388d49c306a288f2c56cb6f25589237f7284e (patch)
treedc6e3a35c247733231a62b1702adbc6f5a4b165c /src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java
parentaa916b6d14d62e062fec49c378e0f62b254c83ae (diff)
downloadRoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.gz
RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.bz2
RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.zip
Small documentations
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java b/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java
index 813cfaad6..435d91d49 100644
--- a/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java
+++ b/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java
@@ -2,10 +2,26 @@ package me.shedaniel.rei.api;
public interface DisplayVisibilityHandler {
+ /**
+ * Gets the priority of the handler
+ *
+ * @return the priority
+ */
default float getPriority() {
return 0f;
}
+ /**
+ * Handles the visibility of the display.
+ * {@link DisplayVisibility.PASS} to pass the handling to another handler
+ * {@link DisplayVisibility.ALWAYS_VISIBLE} to always display it
+ * {@link DisplayVisibility.CONFIG_OPTIONAL} to allow user to configure the visibility
+ * {@link DisplayVisibility.NEVER_VISIBLE} to never display it
+ *
+ * @param category the category of the display
+ * @param display the display of the recipe
+ * @return the visibility
+ */
DisplayVisibility handleDisplay(RecipeCategory category, RecipeDisplay display);
}