本文整理汇总了Java中net.minecraft.world.gen.feature.WorldGenFlowers类的典型用法代码示例。如果您正苦于以下问题:Java WorldGenFlowers类的具体用法?Java WorldGenFlowers怎么用?Java WorldGenFlowers使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WorldGenFlowers类属于net.minecraft.world.gen.feature包,在下文中一共展示了WorldGenFlowers类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateSurface
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public void generateSurface(World world, java.util.Random randomGenerator, int chunkX, int chunkZ) {
for (int i = 0; i < 40; i++) {
int l6 = chunkX + randomGenerator.nextInt(16) + 8;
int i11 = randomGenerator.nextInt(128);
int l14 = chunkZ + randomGenerator.nextInt(16) + 8;
(new WorldGenFlowers(BlockCustomPlant_grass.BlockJenGrass)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockCustomPlant_grass.BlockPatGrass)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerChocolate)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerForJen)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerLove)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerPinkHeart)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerRainbow)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerRedHeart)).generate(world, randomGenerator, l6, i11, l14);
}
}
示例2: BiomeDecorator
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public BiomeDecorator()
{
this.sandGen = new WorldGenSand(Blocks.sand, 7);
this.gravelAsSandGen = new WorldGenSand(Blocks.gravel, 6);
this.dirtGen = new WorldGenMinable(Blocks.dirt, 32);
this.gravelGen = new WorldGenMinable(Blocks.gravel, 32);
this.coalGen = new WorldGenMinable(Blocks.coal_ore, 16);
this.ironGen = new WorldGenMinable(Blocks.iron_ore, 8);
this.goldGen = new WorldGenMinable(Blocks.gold_ore, 8);
this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore, 7);
this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7);
this.lapisGen = new WorldGenMinable(Blocks.lapis_ore, 6);
this.field_150514_p = new WorldGenFlowers(Blocks.yellow_flower);
this.mushroomBrownGen = new WorldGenFlowers(Blocks.brown_mushroom);
this.mushroomRedGen = new WorldGenFlowers(Blocks.red_mushroom);
this.bigMushroomGen = new WorldGenBigMushroom();
this.reedGen = new WorldGenReed();
this.cactusGen = new WorldGenCactus();
this.waterlilyGen = new WorldGenWaterlily();
this.flowersPerChunk = 2;
this.grassPerChunk = 1;
this.sandPerChunk = 1;
this.sandPerChunk2 = 3;
this.clayPerChunk = 1;
this.generateLakes = true;
}
示例3: generateOverworld
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
private void generateOverworld(World world, Random rand, int chunkX, int chunkZ) {
int x = chunkX*16 + rand.nextInt(16);
int z = chunkZ*16 + rand.nextInt(16);
int y = world.getHeightValue(x, z);
if(world.getBiomeGenForCoords(x, z) == BiomeGenBase.forest || world.getBiomeGenForCoords(x, z) == BiomeGenBase.forestHills || world.getBiomeGenForCoords(x, z) == BiomeGenBase.plains && rand.nextInt(1) == 0) {
mapleTree.generate(world, rand, x, y, z);
}
if(world.getBiomeGenForCoords(x, z) == BiomeGenBase.jungle || world.getBiomeGenForCoords(x, z) == BiomeGenBase.jungleEdge || world.getBiomeGenForCoords(x, z) == BiomeGenBase.jungleHills) {
for(int i = 0; i < 6; i++) {
x = chunkX*16 + rand.nextInt(16);
z = chunkZ*16 + rand.nextInt(16);
y = rand.nextInt(128);
new WorldGenFlowers(BlockHandler.vanillaPlant).generate(world, rand, x, y, z);
}
}
}
示例4: BiomeDecorator
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public BiomeDecorator()
{
this.sandGen = new WorldGenSand(Blocks.sand, 7);
this.gravelAsSandGen = new WorldGenSand(Blocks.gravel, 6);
this.dirtGen = new WorldGenMinable(Blocks.dirt, 32);
this.gravelGen = new WorldGenMinable(Blocks.gravel, 32);
this.coalGen = new WorldGenMinable(Blocks.coal_ore, 16);
this.ironGen = new WorldGenMinable(Blocks.iron_ore, 8);
this.goldGen = new WorldGenMinable(Blocks.gold_ore, 8);
this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore, 7);
this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7);
this.lapisGen = new WorldGenMinable(Blocks.lapis_ore, 6);
this.yellowFlowerGen = new WorldGenFlowers(Blocks.yellow_flower);
this.mushroomBrownGen = new WorldGenFlowers(Blocks.brown_mushroom);
this.mushroomRedGen = new WorldGenFlowers(Blocks.red_mushroom);
this.bigMushroomGen = new WorldGenBigMushroom();
this.reedGen = new WorldGenReed();
this.cactusGen = new WorldGenCactus();
this.waterlilyGen = new WorldGenWaterlily();
this.flowersPerChunk = 2;
this.grassPerChunk = 1;
this.sandPerChunk = 1;
this.sandPerChunk2 = 3;
this.clayPerChunk = 1;
this.generateLakes = true;
}
示例5: BiomeDecoratorMagic
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public BiomeDecoratorMagic()
{
super();
this.grassPerChunk = 10;
this.gen_red_berry = new WorldGenFlowers(BlockRegister.BERRY_RED);
this.gen_yellow_berry = new WorldGenFlowers(BlockRegister.BERRY_YELLOW);
this.combustiumGen = new WorldGenMinable(BlockRegister.ORE_COMBUSTIUM, 24, BlockRegister.STONE);
this.etherniumGen = new WorldGenMinable(BlockRegister.ORE_ETHERNIUM, 10, BlockRegister.STONE);
this.silverGen = new WorldGenMinable(BlockRegister.ORE_SILVER, 14, BlockRegister.STONE);
this.titaniumGen = new WorldGenMinable(BlockRegister.ORE_TITANIUM, 10, BlockRegister.STONE);
this.goldGen = new WorldGenMinable(Blocks.gold_ore, 8, BlockRegister.STONE);
this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore, 7, BlockRegister.STONE);
this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7, BlockRegister.STONE);
}
示例6: generateSurface
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public void generateSurface(World world, java.util.Random randomGenerator, int chunkX, int chunkZ) {
for (int i = 0; i < 20; i++) {
int l6 = chunkX + randomGenerator.nextInt(16) + 8;
int i11 = randomGenerator.nextInt(128);
int l14 = chunkZ + randomGenerator.nextInt(16) + 8;
(new WorldGenFlowers(BlockLoader.blockFlowerChocolate)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerForJen)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerLove)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerPinkHeart)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerRainbow)).generate(world, randomGenerator, l6, i11, l14);
(new WorldGenFlowers(BlockLoader.blockFlowerRedHeart)).generate(world, randomGenerator, l6, i11, l14);
}
}
示例7: generateSurface
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public void generateSurface(World world, java.util.Random randomGenerator, int chunkX, int chunkZ) {
for (int i = 0; i < 20; i++) {
int l6 = chunkX + randomGenerator.nextInt(16) + 8;
int i11 = randomGenerator.nextInt(128);
int l14 = chunkZ + randomGenerator.nextInt(16) + 8;
(new WorldGenFlowers(BlockLoader.BlockPumpkinJen)).generate(world, randomGenerator, l6, i11, l14);
}
}
示例8: generateSurface
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
public void generateSurface(World world, java.util.Random randomGenerator, int chunkX, int chunkZ) {
for (int i = 0; i < 20; i++) {
int l6 = chunkX + randomGenerator.nextInt(16) + 8;
int i11 = randomGenerator.nextInt(128);
int l14 = chunkZ + randomGenerator.nextInt(16) + 8;
(new WorldGenFlowers(BlockLoader.BlockPumpkinPat)).generate(world, randomGenerator, l6, i11, l14);
}
}
示例9: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blueFlowerGenerator = new WorldGenFlowers(ModBlocks.nileBlueFlower);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 10; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blueFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}
示例10: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blueFlowerGenerator = new WorldGenFlowers(ModBlocks.nilePinkFlower);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 10; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blueFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}
示例11: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blueFlowerGenerator = new WorldGenFlowers(ModBlocks.nileBlackFlower);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 10; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blueFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}
示例12: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blackFlowerGenerator = new WorldGenFlowers(ModBlocks.nileBlackFlower.blockID);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 30; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blackFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}
示例13: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blueFlowerGenerator = new WorldGenFlowers(ModBlocks.nileBlueFlower.blockID);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 10; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blueFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}
示例14: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blueFlowerGenerator = new WorldGenFlowers(ModBlocks.nileBlueFlower.blockID);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 30; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blueFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}
示例15: decorate
import net.minecraft.world.gen.feature.WorldGenFlowers; //导入依赖的package包/类
@Override
public void decorate(World par1World, Random par2Random, int chunk_X, int chunk_Z){
super.decorate(par1World, par2Random, chunk_X, chunk_Z);
WorldGenFlowers blueFlowerGenerator = new WorldGenFlowers(ModBlocks.nilePinkFlower.blockID);
boolean doGen = TerrainGen.decorate(par1World, par2Random, chunk_X, chunk_Z, FLOWERS);
for (int j = 0; doGen && j < 10; ++j)
{
int k = chunk_X + par2Random.nextInt(16) + 8;
int l = par2Random.nextInt(128);
int i1 = chunk_Z + par2Random.nextInt(16) + 8;
blueFlowerGenerator.generate(par1World, par2Random, k, l, i1);
}
}