- End Stone Smelter REI fuel display
- End Furnaces REI fuel and smelting displays
This commit is contained in:
parent
2fabb39f41
commit
f29d69c69b
8 changed files with 205 additions and 34 deletions
|
@ -11,7 +11,8 @@ public class Configs {
|
|||
public static final IdConfig BIOME_CONFIG = new EntryConfig("biomes");
|
||||
public static final PathConfig GENERATOR_CONFIG = new PathConfig("generator");
|
||||
public static final PathConfig RECIPE_CONFIG = new PathConfig("recipes");
|
||||
|
||||
public static final PortalsConfig PORTALS_CONFIG = new PortalsConfig("portals");
|
||||
|
||||
@Environment(value = EnvType.CLIENT)
|
||||
public static final PathConfig CLENT_CONFIG = new PathConfig("client");
|
||||
|
||||
|
|
19
src/main/java/ru/betterend/config/PortalsConfig.java
Normal file
19
src/main/java/ru/betterend/config/PortalsConfig.java
Normal file
|
@ -0,0 +1,19 @@
|
|||
package ru.betterend.config;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
public class PortalsConfig {
|
||||
|
||||
|
||||
private final ConfigWriter writer;
|
||||
private final JsonObject configObject;
|
||||
|
||||
public PortalsConfig(String path) {
|
||||
this.writer = new ConfigWriter(path);
|
||||
this.configObject = writer.load();
|
||||
}
|
||||
|
||||
public void saveChanges() {
|
||||
writer.save();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue