Generator config

This commit is contained in:
paulevsGitch 2020-12-28 18:06:39 +03:00
parent 078139a26f
commit a794498891
3 changed files with 260 additions and 7 deletions

View file

@ -13,15 +13,13 @@ public class Configs {
public static final IdConfig ENTITY_CONFIG = new IdConfig("entities", (entityId, category) -> {
return new ConfigKey(entityId.getNamespace(), category, entityId.getPath());
});
public static final IdConfig GENERATOR_CONFIG = new IdConfig("generator", (entityId, category) -> {
return new ConfigKey(entityId.getNamespace(), category, entityId.getPath());
});
public static final SimpleConfig GENERATOR_CONFIG = new SimpleConfig("generator");
public static void saveConfigs() {
ITEM_CONFIG.saveChanges();
BLOCK_CONFIG.saveChanges();
BIOME_CONFIG.saveChanges();
ENTITY_CONFIG.saveChanges();
GENERATOR_CONFIG.saveChanges();
GENERATOR_CONFIG.save();
}
}