Package com.khorn.terraincontrol.configuration.io

Examples of com.khorn.terraincontrol.configuration.io.FileSettingsReader


     */
    private void loadBiomeFromFile(Map<String, BiomeConfig> biomeConfigsStore, File file, BiomeLoadInstruction loadInstruction)
    {
        // Load biome
        File renamedFile = renameBiomeFile(file, loadInstruction);
        SettingsReader reader = new FileSettingsReader(loadInstruction.getBiomeName(), renamedFile);
        BiomeConfig biomeConfig = new BiomeConfig(reader, loadInstruction, worldConfig);
        biomeConfigsStore.put(loadInstruction.getBiomeName(), biomeConfig);
    }
View Full Code Here


    }

    private void loadWorldConfig()
    {
        File worldConfigFile = new File(settingsDir, WorldStandardValues.WORLD_CONFIG_FILE_NAME);
        this.worldConfig = new WorldConfig(new FileSettingsReader(world.getName(), worldConfigFile), world, customObjects);
        FileSettingsWriter.writeToFile(worldConfig, worldConfig.SettingsMode);
    }
View Full Code Here

public class BO2Loader implements CustomObjectLoader
{
    @Override
    public CustomObject loadFromFile(String objectName, File file)
    {
        return new BO2(new FileSettingsReader(objectName, file));
    }
View Full Code Here

    }

    @Override
    public void onEnable(Map<String, CustomObject> otherObjectsInDirectory)
    {
        this.settings = new BO3Config(new FileSettingsReader(name, file), otherObjectsInDirectory);
    }
View Full Code Here

        customObjectManager = new CustomObjectManager();
        biomeManagers = new BiomeModeManager();

        // Do pluginConfig loading and then log anything that happened
        // LogManager and PluginConfig are now decoupled, thank the lord!
        pluginConfig = new PluginConfig(new FileSettingsReader("PluginConfig", new File(getTCDataFolder(),
                PluginStandardValues.ConfigFilename)));
        FileSettingsWriter.writeToFile(pluginConfig, pluginConfig.SettingsMode);
        logger.setLevel(pluginConfig.getLogLevel().getLevel());

        // Fire start event
View Full Code Here

TOP

Related Classes of com.khorn.terraincontrol.configuration.io.FileSettingsReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.