From 08d80d588a36598114087a79917e36e9d2cc97c3 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 24 Dec 2019 11:31:40 +0800 Subject: Finishing workstation usage and close #220 --- .../java/me/shedaniel/rei/api/ConfigObject.java | 99 ++++++++++++---------- 1 file changed, 52 insertions(+), 47 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/api/ConfigObject.java') diff --git a/src/main/java/me/shedaniel/rei/api/ConfigObject.java b/src/main/java/me/shedaniel/rei/api/ConfigObject.java index 03e962ba6..ac807ec03 100644 --- a/src/main/java/me/shedaniel/rei/api/ConfigObject.java +++ b/src/main/java/me/shedaniel/rei/api/ConfigObject.java @@ -17,103 +17,108 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; public interface ConfigObject { - + @SuppressWarnings("deprecation") static ConfigObject getInstance() { return ConfigManager.getInstance().getConfig(); } - + boolean isLighterButtonHover(); - + void setLighterButtonHover(boolean lighterButtonHover); - + boolean isOverlayVisible(); - + void setOverlayVisible(boolean overlayVisible); - + boolean isCheating(); - + void setCheating(boolean cheating); - + ItemListOrdering getItemListOrdering(); - + boolean isItemListAscending(); - + boolean isUsingDarkTheme(); - + boolean isToastDisplayedOnCopyIdentifier(); - + @Deprecated default boolean doesRenderEntryExtraOverlay() { return doesRenderEntryEnchantmentGlint(); } - + boolean doesRenderEntryEnchantmentGlint(); - + boolean isEntryListWidgetScrolled(); - + boolean shouldAppendModNames(); - + RecipeScreenType getRecipeScreenType(); - + void setRecipeScreenType(RecipeScreenType recipeScreenType); - + boolean isLoadingDefaultPlugin(); - + SearchFieldLocation getSearchFieldLocation(); - + boolean isLeftHandSidePanel(); - + boolean isCraftableFilterEnabled(); - + String getGamemodeCommand(); - + String getGiveCommand(); - + String getWeatherCommand(); - + int getMaxRecipePerPage(); - + boolean doesShowUtilsButtons(); - + boolean doesDisableRecipeBook(); - + boolean doesFixTabCloseContainer(); - + boolean areClickableRecipeArrowsEnabled(); - + ItemCheatingMode getItemCheatingMode(); - + boolean isUsingLightGrayRecipeBorder(); - + boolean doesVillagerScreenHavePermanentScrollBar(); - + boolean doesRegisterRecipesInAnotherThread(); - + boolean doesSnapToRows(); - + boolean isFavoritesEnabled(); - + boolean doDisplayFavoritesTooltip(); - + boolean doDisplayFavoritesOnTheLeft(); - + boolean doesFastEntryRendering(); - + boolean doDebugRenderTimeRequired(); - + + boolean doSearchFavorites(); + InputUtil.KeyCode getFavoriteKeybind(); - + @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD}) - public @interface AddInFrontKeyCode {} - + public @interface AddInFrontKeyCode { + } + @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD}) - public @interface DontApplyFieldName {} - + public @interface DontApplyFieldName { + } + @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD}) - public @interface UseEnumSelectorInstead {} - + public @interface UseEnumSelectorInstead { + } + } -- cgit