ConfigObject.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package me.shedaniel.rei.api;
  2. import me.shedaniel.rei.gui.config.ItemCheatingMode;
  3. import me.shedaniel.rei.gui.config.ItemListOrdering;
  4. import me.shedaniel.rei.gui.config.RecipeScreenType;
  5. import me.zeroeightsix.fiber.tree.ConfigNode;
  6. public interface ConfigObject {
  7. ConfigNode getConfigNode();
  8. boolean isCheating();
  9. void setCheating(boolean cheating);
  10. ItemListOrdering getItemListOrdering();
  11. boolean isItemListAscending();
  12. boolean isUsingDarkTheme();
  13. boolean isEntryListWidgetScrolled();
  14. boolean shouldAppendModNames();
  15. RecipeScreenType getRecipeScreenType();
  16. void setRecipeScreenType(RecipeScreenType recipeScreenType);
  17. boolean isLoadingDefaultPlugin();
  18. boolean isSideSearchField();
  19. boolean isLeftHandSidePanel();
  20. boolean isCraftableFilterEnabled();
  21. String getGamemodeCommand();
  22. String getGiveCommand();
  23. String getWeatherCommand();
  24. int getMaxRecipePerPage();
  25. boolean doesShowUtilsButtons();
  26. boolean doesDisableRecipeBook();
  27. boolean areClickableRecipeArrowsEnabled();
  28. ItemCheatingMode getItemCheatingMode();
  29. boolean isUsingLightGrayRecipeBorder();
  30. boolean doesVillagerScreenHavePermanentScrollBar();
  31. boolean doesRegisterRecipesInAnotherThread();
  32. RelativePoint getChoosePageDialogPoint();
  33. void setChoosePageDialogPoint(RelativePoint choosePageDialogPoint);
  34. public static class RelativePoint {
  35. private double relativeX, relativeY;
  36. public RelativePoint(double relativeX, double relativeY) {
  37. this.relativeX = relativeX;
  38. this.relativeY = relativeY;
  39. }
  40. public double getRelativeX() {
  41. return relativeX;
  42. }
  43. public double getRelativeY() {
  44. return relativeY;
  45. }
  46. public double getX(double width) {
  47. return width * relativeX;
  48. }
  49. public double getY(double height) {
  50. return height * relativeY;
  51. }
  52. }
  53. }