DisplayVisibilityHandler.java 831 B

123456789101112131415161718192021222324252627
  1. package me.shedaniel.rei.api;
  2. public interface DisplayVisibilityHandler {
  3. /**
  4. * Gets the priority of the handler
  5. *
  6. * @return the priority
  7. */
  8. default float getPriority() {
  9. return 0f;
  10. }
  11. /**
  12. * Handles the visibility of the display.
  13. * {@link DisplayVisibility.PASS} to pass the handling to another handler
  14. * {@link DisplayVisibility.ALWAYS_VISIBLE} to always display it
  15. * {@link DisplayVisibility.CONFIG_OPTIONAL} to allow user to configure the visibility
  16. * {@link DisplayVisibility.NEVER_VISIBLE} to never display it
  17. *
  18. * @param category the category of the display
  19. * @param display the display of the recipe
  20. * @return the visibility
  21. */
  22. DisplayVisibility handleDisplay(RecipeCategory category, RecipeDisplay display);
  23. }