Package org.spout.vanilla.world.generator.normal.object.tree

Examples of org.spout.vanilla.world.generator.normal.object.tree.SmallTreeObject


    @Override
    public TreeObject make(Random random) {
      if (random.nextInt(10) == 0) {
        return new BigTreeObject();
      } else {
        return new SmallTreeObject();
      }
    }
View Full Code Here


  private static class ForestTreeWGOFactory extends NormalTreeWGOFactory {
    @Override
    public TreeObject make(Random random) {
      if (random.nextInt(5) == 0) {
        final SmallTreeObject tree = new SmallTreeObject();
        tree.setTreeType(TreeType.BIRCH);
        return tree;
      }
      return super.make(random);
    }
View Full Code Here

        return new ShrubObject();
      }
      if (random.nextInt(3) == 0) {
        return new HugeTreeObject();
      }
      final SmallTreeObject tree = new SmallTreeObject();
      tree.setTreeType(TreeObject.TreeType.JUNGLE);
      tree.setBaseHeight((byte) 4);
      tree.setRandomHeight((byte) 10);
      tree.addLogVines(true);
      tree.addCocoaPlants(true);
      return tree;
    }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.world.generator.normal.object.tree.SmallTreeObject

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.