Package com.khorn.terraincontrol.configuration

Examples of com.khorn.terraincontrol.configuration.ConfigFunctionsManager


    @Override
    public <T> List<ConfigFunction<T>> getConfigFunctions(T holder, boolean useFallback)
    {
        List<ConfigFunction<T>> result = new ArrayList<ConfigFunction<T>>(configFunctions.size());
        ConfigFunctionsManager manager = TerrainControl.getConfigFunctionsManager();
        for (StringOnLine configFunctionLine : configFunctions)
        {
            String configFunctionString = configFunctionLine.string;
            int bracketIndex = configFunctionString.indexOf('(');
            String functionName = configFunctionString.substring(0, bracketIndex);
            String parameters = configFunctionString.substring(bracketIndex + 1, configFunctionString.length() - 1);
            List<String> args = Arrays.asList(StringHelper.readCommaSeperatedString(parameters));
            ConfigFunction<T> function = manager.getConfigFunction(functionName, holder, args);
            result.add(function);
            if (!function.isValid())
            {
                TerrainControl.log(LogMarker.WARN, "Invalid resource {} in {} on line {}: {}",
                        functionName, this.name, configFunctionLine.line, function.getError());
View Full Code Here


    }

    public void onStart()
    {
        // Start the engine
        configFunctionsManager = new ConfigFunctionsManager();
        customObjectManager = new CustomObjectManager();
        biomeManagers = new BiomeModeManager();

        // Do pluginConfig loading and then log anything that happened
        // LogManager and PluginConfig are now decoupled, thank the lord!
View Full Code Here

TOP

Related Classes of com.khorn.terraincontrol.configuration.ConfigFunctionsManager

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.