Package net.minecraft.world.gen.feature

Examples of net.minecraft.world.gen.feature.WorldGenMinable.generate()


        int firstBlockZCoord = 16 * chunkZ + random.nextInt(16);
        ItemStack itemStack = EnumOreFrequency.getRandomOre(random);
        for (int l = 0; l < 200; l++) {
          int firstBlockYCoord = random.nextInt(245) + 6;
          WorldGenMinable mineable = new WorldGenMinable(Block.getBlockFromItem(itemStack.getItem()), itemStack.getItemDamage(), random.nextInt(20), Blocks.bedrock);
          mineable.generate(world, random, firstBlockXCoord, firstBlockYCoord, firstBlockZCoord);
        }
      }
    }
  }

View Full Code Here


        for (yPos = 0; yPos < 16; ++yPos)
        {
            zPos = blockX + this.hellRNG.nextInt(16);
            i2 = this.hellRNG.nextInt(108) + 10;
            j2 = blockZ + this.hellRNG.nextInt(16);
            worldgenminable.generate(this.worldObj, this.hellRNG, zPos, i2, j2);
        }

        for (yPos = 0; yPos < 16; ++yPos)
        {
            zPos = blockX + this.hellRNG.nextInt(16);
View Full Code Here

      if ( WorldGenRegistry.instance.isWorldGenEnabled( isCharged ? WorldGenType.ChargedCertusQuartz : WorldGenType.CertusQuartz, w ) )
      {
        int cx = chunkX * 16 + r.nextInt( 22 );
        int cy = r.nextInt( 40 * seaLevel / 64 ) + r.nextInt( 22 * seaLevel / 64 ) + 12 * seaLevel / 64;
        int cz = chunkZ * 16 + r.nextInt( 22 );
        whichOre.generate( w, r, cx, cy, cz );
      }
    }

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