Package com.khorn.terraincontrol.configuration.io

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


     */
    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

        "position: absolute; width:100%; height:100%; left:0px; top:0px;");   
    Node n = document.appendChild(xhtmlDiv);
     
      // Convert the object itself to SVG
    Svg svg = oFactory.createSvg();
      Line line = oFactory.createLine();
      svg.getSVGDescriptionClassOrSVGAnimationClassOrSVGStructureClass().add(line);
     
      line.setX1(b.getOffset().getXAsString() );
      line.setY1(b.getOffset().getYAsString() );
     
      Point otherEnd = b.getOtherCorner();
     
      line.setX2( otherEnd.getXAsString() );
      line.setY2( otherEnd.getYAsString() );

      line.setStyle("stroke:rgb(99,99,99)");
      // You can't see the line in Midori, unless you specify the color.
      // width eg stroke-width:2 is optional
     
      Document d2 = XmlUtils.marshaltoW3CDomDocument(svg, jcSVG);  
      XmlUtils.treeCopy(d2, n);
View Full Code Here

TOP

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

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.