Package org.terasology.config

Examples of org.terasology.config.ModuleConfig.removeModule()


    private void setSelectedGameplayModule(Module previousModule, Module module) {
        ModuleConfig moduleConfig = config.getDefaultModSelection();
        moduleConfig.setDefaultGameplayModuleName(module.getId().toString());
        if (previousModule != null) {
            moduleConfig.removeModule(previousModule.getId());
        }
        moduleConfig.addModule(module.getId());

        if (!moduleConfig.hasModule(config.getWorldGeneration().getDefaultGenerator().getModuleName())) {
            config.getWorldGeneration().setDefaultGenerator(new SimpleUri());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.