Generator config

This commit is contained in:
paulevsGitch 2020-12-28 17:59:00 +03:00
parent 9a41dc8670
commit 078139a26f
5 changed files with 44 additions and 22 deletions

View file

@ -13,11 +13,15 @@ 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 void saveConfigs() {
ITEM_CONFIG.saveChanges();
BLOCK_CONFIG.saveChanges();
BIOME_CONFIG.saveChanges();
ENTITY_CONFIG.saveChanges();
GENERATOR_CONFIG.saveChanges();
}
}