12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- package me.shedaniel.rei.api;
- import me.shedaniel.rei.gui.config.ItemCheatingMode;
- import me.shedaniel.rei.gui.config.ItemListOrdering;
- import me.shedaniel.rei.gui.config.RecipeScreenType;
- import me.zeroeightsix.fiber.tree.ConfigNode;
- public interface ConfigObject {
-
- ConfigNode getConfigNode();
-
- boolean isCheating();
-
- void setCheating(boolean cheating);
-
- ItemListOrdering getItemListOrdering();
-
- boolean isItemListAscending();
-
- boolean isUsingDarkTheme();
-
- boolean isEntryListWidgetScrolled();
-
- boolean shouldAppendModNames();
-
- RecipeScreenType getRecipeScreenType();
-
- void setRecipeScreenType(RecipeScreenType recipeScreenType);
-
- boolean isLoadingDefaultPlugin();
-
- boolean isSideSearchField();
-
- boolean isLeftHandSidePanel();
-
- boolean isCraftableFilterEnabled();
-
- String getGamemodeCommand();
-
- String getGiveCommand();
-
- String getWeatherCommand();
-
- int getMaxRecipePerPage();
-
- boolean doesShowUtilsButtons();
-
- boolean doesDisableRecipeBook();
-
- boolean areClickableRecipeArrowsEnabled();
-
- ItemCheatingMode getItemCheatingMode();
-
- boolean isUsingLightGrayRecipeBorder();
-
- boolean doesVillagerScreenHavePermanentScrollBar();
-
- boolean doesRegisterRecipesInAnotherThread();
-
- RelativePoint getChoosePageDialogPoint();
-
- void setChoosePageDialogPoint(RelativePoint choosePageDialogPoint);
-
- public static class RelativePoint {
-
- private double relativeX, relativeY;
-
- public RelativePoint(double relativeX, double relativeY) {
- this.relativeX = relativeX;
- this.relativeY = relativeY;
- }
-
- public double getRelativeX() {
- return relativeX;
- }
-
- public double getRelativeY() {
- return relativeY;
- }
-
- public double getX(double width) {
- return width * relativeX;
- }
-
- public double getY(double height) {
- return height * relativeY;
- }
-
- }
-
- }
|