diff options
| author | Daniel She <shekwancheung0528@gmail.com> | 2019-05-12 10:55:21 +0800 |
|---|---|---|
| committer | Daniel She <shekwancheung0528@gmail.com> | 2019-05-12 10:55:21 +0800 |
| commit | f51e5af85e26f588cbe2eba2eef728e783201bc8 (patch) | |
| tree | e490afcfe8974af8a6c65954667bf822505224d4 /src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java | |
| parent | 64c240a5a5eb6b4312b86e24ddbaaa70ada49359 (diff) | |
| parent | b99108611ea89dc0eda6c433447ce398a98ad4ad (diff) | |
| download | RoughlyEnoughItems-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/DisplayVisibilityHandler.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java | 21 |
1 files changed, 21 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..39a106783 100644 --- a/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java +++ b/src/main/java/me/shedaniel/rei/api/DisplayVisibilityHandler.java @@ -1,11 +1,32 @@ +/* + * Roughly Enough Items by Danielshe. + * Licensed under the MIT License. + */ + 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); } |
