Examples of offsetMinMax()


Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    // Floor
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.setMinMax(0, 0, 0, 4, 1, 4).fill();
    // Interior space
    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    box.offsetMinMax(0, 2, 0, 0, 4, 0).fill();
    // Four corner columns
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.offsetMinMax(0, 0, 0, -4, 0, -4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-4, 0, 4, -4, 0, 4).fill();
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    // Interior space
    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    box.offsetMinMax(0, 2, 0, 0, 4, 0).fill();
    // Four corner columns
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.offsetMinMax(0, 0, 0, -4, 0, -4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-4, 0, 4, -4, 0, 4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    // Roof
    box.setMinMax(0, 6, 0, 4, 6, 4).fill();
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    box.offsetMinMax(0, 2, 0, 0, 4, 0).fill();
    // Four corner columns
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.offsetMinMax(0, 0, 0, -4, 0, -4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-4, 0, 4, -4, 0, 4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    // Roof
    box.setMinMax(0, 6, 0, 4, 6, 4).fill();
    // Fill down to the ground
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    box.offsetMinMax(0, 2, 0, 0, 4, 0).fill();
    // Four corner columns
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.offsetMinMax(0, 0, 0, -4, 0, -4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-4, 0, 4, -4, 0, 4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    // Roof
    box.setMinMax(0, 6, 0, 4, 6, 4).fill();
    // Fill down to the ground
    for (int xx = 0; xx <= 4; xx++) {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    // Four corner columns
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.offsetMinMax(0, 0, 0, -4, 0, -4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    box.offsetMinMax(-4, 0, 4, -4, 0, 4).fill();
    box.offsetMinMax(4, 0, 0, 4, 0, 0).fill();
    // Roof
    box.setMinMax(0, 6, 0, 4, 6, 4).fill();
    // Fill down to the ground
    for (int xx = 0; xx <= 4; xx++) {
      for (int zz = 0; zz <= 4; zz++) {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    final SimpleBlockMaterialPicker picker = new SimpleBlockMaterialPicker();
    box.setPicker(picker);
    // the basic tunnel
    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    box.setMinMax(0, 0, 0, 2, 1, lenght).fill();
    box.offsetMinMax(0, 2, 0, 0, 1, 0).randomFill(0.8f);
    // spider webs for spawner
    if (caveSpiders) {
      picker.setOuterMaterial(VanillaMaterials.WEB);
      box.setMinMax(0, 0, 0, 2, 1, lenght).randomFill(0.6f);
    }
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    for (byte section = 0; section < sections; section++) {
      final short sectionZ = (short) (section * 5 + 2);
      // fences
      picker.setOuterMaterial(VanillaMaterials.WOODEN_FENCE);
      box.setMinMax(0, 0, sectionZ, 0, 1, sectionZ).fill();
      box.offsetMinMax(2, 0, 0, 2, 0, 0).fill();
      // ceiling planks
      picker.setOuterMaterial(VanillaMaterials.PLANK);
      if (random.nextInt(4) != 0) {
        box.setMinMax(0, 2, sectionZ, 2, 2, sectionZ).fill();
      } else {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

      picker.setOuterMaterial(VanillaMaterials.PLANK);
      if (random.nextInt(4) != 0) {
        box.setMinMax(0, 2, sectionZ, 2, 2, sectionZ).fill();
      } else {
        box.setMinMax(0, 2, sectionZ, 0, 2, sectionZ).fill();
        box.offsetMinMax(2, 0, 0, 2, 0, 0).fill();
      }
      // webs and torches
      setBlockMaterial(0.9f, 0, 2, sectionZ - 1, VanillaMaterials.WEB);
      setBlockMaterial(0.9f, 2, 2, sectionZ - 1, VanillaMaterials.WEB);
      setBlockMaterial(0.9f, 0, 2, sectionZ + 1, VanillaMaterials.WEB);
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    // Floor
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    box.setMinMax(0, 0, 0, 4, 1, 4).fill();
    // Interior space
    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    box.offsetMinMax(0, 2, 0, 0, 4, 0).fill();
    // First wall
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    if (left) {
      box.offsetMinMax(0, 0, 0, -4, 0, 0);
    } else {
View Full Code Here

Examples of org.spout.vanilla.world.generator.structure.PieceCuboidBuilder.offsetMinMax()

    picker.setOuterInnerMaterials(VanillaMaterials.AIR, VanillaMaterials.AIR);
    box.offsetMinMax(0, 2, 0, 0, 4, 0).fill();
    // First wall
    picker.setOuterInnerMaterials(VanillaMaterials.NETHER_BRICK, VanillaMaterials.NETHER_BRICK);
    if (left) {
      box.offsetMinMax(0, 0, 0, -4, 0, 0);
    } else {
      box.offsetMinMax(4, 0, 0, 0, 0, 0);
    }
    box.fill();
    // Windows for the first wall
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.