Package org.spout.api.generator.biome

Examples of org.spout.api.generator.biome.BiomeSelector.pickBiome()


            if (xx + sx < 0 || zz + sz < 0
                || xx + sx >= sizeX || zz + sz >= sizeZ) {
              if (biomeCache.containsKey(x + xx + sx, z + zz + sz)) {
                adjacent = biomeCache.get(x + xx + sx, z + zz + sz);
              } else {
                adjacent = (NormalBiome) selector.pickBiome(x + xx + sx, y, z + zz + sz, seed);
                biomeCache.put(x + xx + sx, z + zz + sz, adjacent);
              }
            } else {
              adjacent = (NormalBiome) biomes.getBiome(xx + sx, y, zz + sz);
            }
View Full Code Here


  @Override
  public Point getSafeSpawn(World world) {
    short shift = 0;
    final BiomeSelector selector = getSelector();
    final long seed = world.getSeed();
    while (LogicUtil.equalsAny(selector.pickBiome(shift, 0, seed),
        VanillaBiomes.OCEAN, VanillaBiomes.BEACH, VanillaBiomes.RIVER,
        VanillaBiomes.SWAMP, VanillaBiomes.MUSHROOM_SHORE, VanillaBiomes.MUSHROOM)
        && shift < 1600) {
      shift += 16;
    }
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.