Examples of VanillaBiome


Examples of org.spout.vanilla.world.generator.biome.VanillaBiome

  }

  public boolean isSnowingAt(int x, int y, int z) {
    Biome biome = getWorld().getBiome(x, y, z);
    if (biome instanceof VanillaBiome) {
      VanillaBiome vb = (VanillaBiome) biome;
      if (vb.getClimate().hasSnowfall()) {
        return getCurrent().isRaining() && y > getWorld().getSurfaceHeight(x, z);
      }
    }
    return false;
  }
View Full Code Here

Examples of org.spout.vanilla.world.generator.biome.VanillaBiome

      final int x = GenericMath.floor(vertices.get(i));
      final int y = GenericMath.floor(vertices.get(i + 1));
      final int z = GenericMath.floor(vertices.get(i + 2));
      for (byte xx = -1; xx <= 1; xx++) {
        for (byte zz = -1; zz <= 1; zz++) {
          VanillaBiome biome = (VanillaBiome) world.getBiome(x + xx, y, z + zz);
          // Default to forest if no biome is set
          if (biome == null) {
            biome = VanillaBiomes.FOREST;
          }
          final Color color = getBiomeColor(biome);
View Full Code Here

Examples of org.spout.vanilla.world.generator.biome.VanillaBiome

  public boolean isRainingAt(int x, int y, int z, boolean includeSnow) {
    if (!includeSnow) {
      Biome biome = getWorld().getBiome(x, y, z);
      if (biome instanceof VanillaBiome) {
        VanillaBiome vb = (VanillaBiome) biome;
        if (vb.getClimate().hasRainfall()) {
          return getCurrent().isRaining() && y > getWorld().getSurfaceHeight(x, z);
        }
      }
    }
    return false;
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.