aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/ConfigManager.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-05-12 01:32:04 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-05-12 01:32:04 +0800
commit357388d49c306a288f2c56cb6f25589237f7284e (patch)
treedc6e3a35c247733231a62b1702adbc6f5a4b165c /src/main/java/me/shedaniel/rei/api/ConfigManager.java
parentaa916b6d14d62e062fec49c378e0f62b254c83ae (diff)
downloadRoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.gz
RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.tar.bz2
RoughlyEnoughItems-357388d49c306a288f2c56cb6f25589237f7284e.zip
Small documentations
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/ConfigManager.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/ConfigManager.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/ConfigManager.java b/src/main/java/me/shedaniel/rei/api/ConfigManager.java
index d23429142..536d61c60 100644
--- a/src/main/java/me/shedaniel/rei/api/ConfigManager.java
+++ b/src/main/java/me/shedaniel/rei/api/ConfigManager.java
@@ -7,18 +7,52 @@ import java.io.IOException;
public interface ConfigManager {
+ /**
+ * Saves the config.
+ *
+ * @throws IOException
+ */
void saveConfig() throws IOException;
+ /**
+ * Loads the config from the json file, creates the file if not found.
+ *
+ * @throws IOException
+ */
void loadConfig() throws IOException;
+ /**
+ * Gets the config instance
+ *
+ * @return the config instance
+ */
ConfigObject getConfig();
+ /**
+ * Gets if craftable only filter is enabled
+ *
+ * @return whether craftable only filter is enabled
+ */
boolean isCraftableOnlyEnabled();
+ /**
+ * Toggles the craftable only filter
+ */
void toggleCraftableOnly();
+ /**
+ * Opens the config screen
+ *
+ * @param parent the screen shown before
+ */
void openConfigScreen(Screen parent);
+ /**
+ * Gets the config screen
+ *
+ * @param parent the screen shown before
+ * @return the config screen
+ */
Screen getConfigScreen(Screen parent);
}