aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/ConfigManager.java
diff options
context:
space:
mode:
authorDaniel She <shekwancheung0528@gmail.com>2019-05-12 10:55:21 +0800
committerDaniel She <shekwancheung0528@gmail.com>2019-05-12 10:55:21 +0800
commitf51e5af85e26f588cbe2eba2eef728e783201bc8 (patch)
treee490afcfe8974af8a6c65954667bf822505224d4 /src/main/java/me/shedaniel/rei/api/ConfigManager.java
parent64c240a5a5eb6b4312b86e24ddbaaa70ada49359 (diff)
parentb99108611ea89dc0eda6c433447ce398a98ad4ad (diff)
downloadRoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.tar.gz
RoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.tar.bz2
RoughlyEnoughItems-f51e5af85e26f588cbe2eba2eef728e783201bc8.zip
Merge branch '1.14-dev' into 1.14
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/ConfigManager.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/ConfigManager.java39
1 files changed, 39 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..00ebd2e46 100644
--- a/src/main/java/me/shedaniel/rei/api/ConfigManager.java
+++ b/src/main/java/me/shedaniel/rei/api/ConfigManager.java
@@ -1,3 +1,8 @@
+/*
+ * Roughly Enough Items by Danielshe.
+ * Licensed under the MIT License.
+ */
+
package me.shedaniel.rei.api;
import me.shedaniel.rei.client.ConfigObject;
@@ -7,18 +12,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);
}