Package org.terasology.core.world.generator.chunkGenerators

Examples of org.terasology.core.world.generator.chunkGenerators.TreeGeneratorCactus


                .put('A', new LSystemRule("[&FFAFF]////[&FFAFF]////[&FFAFF]", 1.0f)).build();
        TreeGenerator redTree = new TreeGeneratorLSystem("FFFFFAFAFAF", rules, 4, (float) Math.toRadians(40)).setLeafType(blockManager.getBlock("core:RedLeaf"))
                .setBarkType(blockManager.getBlock("core:OakTrunk")).setGenerationProbability(0.05f);

        // Cactus
        TreeGenerator cactus = new TreeGeneratorCactus().setTrunkType(blockManager.getBlock("core:Cactus")).setGenerationProbability(0.05f);

        // Add the trees to the generator lists
        treeGeneratorLookup.put(CoreBiome.MOUNTAINS, oakTree);
        treeGeneratorLookup.put(CoreBiome.MOUNTAINS, pineTree);
View Full Code Here

TOP

Related Classes of org.terasology.core.world.generator.chunkGenerators.TreeGeneratorCactus

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.