DisplaySettings.java 527 B

1234567891011121314151617181920212223
  1. package me.shedaniel.rei.api;
  2. public interface DisplaySettings<T extends RecipeDisplay> {
  3. int getDisplayHeight(RecipeCategory category);
  4. int getDisplayWidth(RecipeCategory category, T display);
  5. int getMaximumRecipePerPage(RecipeCategory category);
  6. default int getFixedRecipesPerPage() {
  7. return -1;
  8. }
  9. default VisableType canDisplay(T display) {
  10. return VisableType.ALWAYS;
  11. }
  12. public static enum VisableType {
  13. ALWAYS, PASS, NEVER;
  14. }
  15. }