Arbitrary hierarchy

This commit is contained in:
paulevsGitch 2020-12-31 07:15:46 +03:00
parent 640671bfce
commit fc71ea4eba
10 changed files with 133 additions and 74 deletions

View file

@ -1,17 +1,17 @@
package ru.betterend.config;
public class Configs {
public static final IdConfig ENTITY_CONFIG = new CategoryConfig("entities");
public static final IdConfig BLOCK_CONFIG = new CategoryConfig("blocks");
public static final SimpleConfig GENERAL = new SimpleConfig("settings");
public static final IdConfig ITEM_CONFIG = new CategoryConfig("items");
public static final PathConfig ENTITY_CONFIG = new PathConfig("entities");
public static final PathConfig BLOCK_CONFIG = new PathConfig("blocks");
public static final PathConfig ITEM_CONFIG = new PathConfig("items");
public static final IdConfig BIOME_CONFIG = new EntryConfig("biomes");
public static final PathConfig GENERATOR_CONFIG = new PathConfig("generator");
public static void saveConfigs() {
ENTITY_CONFIG.saveChanges();
BLOCK_CONFIG.saveChanges();
BIOME_CONFIG.saveChanges();
ITEM_CONFIG.saveChanges();
GENERAL.saveChanges();
GENERATOR_CONFIG.saveChanges();
}
}