diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-08 16:53:46 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-08 16:53:46 +0800 |
| commit | 10fa4cea1da644efe5b3045d3159a3eebdb8c0a8 (patch) | |
| tree | 0e8f504b66391d6762d526c0e7cdd94c3cb6022f /src/main/java/me/shedaniel/rei/api/ConfigObject.java | |
| parent | 6464acb0a7fe98ab30f9419e6aa95bdd1e92bc74 (diff) | |
| download | RoughlyEnoughItems-10fa4cea1da644efe5b3045d3159a3eebdb8c0a8.tar.gz RoughlyEnoughItems-10fa4cea1da644efe5b3045d3159a3eebdb8c0a8.tar.bz2 RoughlyEnoughItems-10fa4cea1da644efe5b3045d3159a3eebdb8c0a8.zip | |
Using fiber as a config lib
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/ConfigObject.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/api/ConfigObject.java | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/ConfigObject.java b/src/main/java/me/shedaniel/rei/api/ConfigObject.java new file mode 100644 index 000000000..de6911c96 --- /dev/null +++ b/src/main/java/me/shedaniel/rei/api/ConfigObject.java @@ -0,0 +1,89 @@ +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(); + + void setCheating(boolean cheating); + + boolean isCheating(); + + ItemListOrdering getItemListOrdering(); + + boolean isItemListAscending(); + + boolean isUsingDarkTheme(); + + 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; + } + + } + +} |
