Examples of canSpawnLightningBolt()


Examples of net.minecraft.world.biome.BiomeGenBase.canSpawnLightningBolt()

   
    if(worldObj.getWorldInfo().isRaining() && canSeeSky())
    {
      BiomeGenBase bgb = worldObj.getBiomeGenForCoords(this.xCoord, this.zCoord);
     
      if(!bgb.canSpawnLightningBolt() && !bgb.getEnableSnow())
      {
        setIdleTicks(getIdleTicksMax());
        return false;
      }
      setWorkDone(getWorkDone() + 1);
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase.canSpawnLightningBolt()

    private boolean canGen(World world, Random rand, int x, int z) {
        BiomeGenBase biome = world.getBiomeGenForCoords(x + 16, z + 16);
        if (!BiomeDictionary.isBiomeOfType(biome, BiomeDictionary.Type.DESERT))
            return false;
        if (biome.canSpawnLightningBolt())
            return false;
        return biome.temperature >= 1.5f && biome.rainfall <= 0.1f;
    }

}
View Full Code Here

Examples of net.minecraft.world.biome.BiomeGenBase.canSpawnLightningBolt()

            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
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.