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

Examples of org.spout.vanilla.world.generator.normal.object.tree.BigTreeObject$PointBase


  @Filter (PlayerFilter.class)
  public void growTree(Player player, CommandArguments args) throws CommandException {
    args.assertCompletelyParsed();
    Point pos = player.getPhysics().getPosition();

    BigTreeObject tree = new BigTreeObject();
    tree.placeObject(pos.getWorld(), pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
    player.getPhysics().setPosition(pos.add(new Vector3f(0, 50, 0)));
  }
View Full Code Here


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

    }

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

TOP

Related Classes of org.spout.vanilla.world.generator.normal.object.tree.BigTreeObject$PointBase

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.