Package net.minecraft.world.biome

Examples of net.minecraft.world.biome.BiomeGenBase


    if (random.nextFloat() > 0.025f) {
      return;
    }

    // Do not generate water in the End or the Nether
    BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(x, z);
    if (biomegenbase.biomeID == BiomeGenBase.sky.biomeID || biomegenbase.biomeID == BiomeGenBase.hell.biomeID) {
      return;
    }

    int posX = x + random.nextInt(16);
View Full Code Here


    // shift to world coordinates
    int x = chunkX * 16 + 8 + rand.nextInt(16);
    int z = chunkZ * 16 + 8 + rand.nextInt(16);

    BiomeGenBase biome = world.getBiomeGenForCoords(x, z);

    // Do not generate oil in the End or Nether
    if (excludedBiomes.contains(biome.biomeID)) {
      return;
    }
View Full Code Here

      }
    }
  }

  public void generateSurfaceDeposit(World world, Random rand, int x, int y, int z, int radius) {
    BiomeGenBase biome = world.getBiomeGenForCoords(x, z);
    generateSurfaceDeposit(world, rand, biome, x, y, z, radius);
  }
View Full Code Here

        if (isRaining) {
          if (this.canSnowAt(var9 + xPos, var11, var10 + zPos)) {
            this.setBlock(var9 + xPos, var11, var10 + zPos, Block.snow.blockID);
          }

          BiomeGenBase var12 = this.getBiomeGenForCoords(var9 + xPos, var10 + zPos);

          if (var12.canSpawnLightningBolt()) {
            blockID = this.getBlockIdWithoutLoad(var9 + xPos, var11 - 1, var10 + zPos);

            if (blockID > 0) {
              Block.blocksList[blockID].fillWithRain(this, var9 + xPos, var11 - 1, var10 + zPos);
            }
View Full Code Here

TOP

Related Classes of net.minecraft.world.biome.BiomeGenBase

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.