当前位置: 首页>>代码示例>>Java>>正文


Java WorldGenDesertWells类代码示例

本文整理汇总了Java中net.minecraft.world.gen.feature.WorldGenDesertWells的典型用法代码示例。如果您正苦于以下问题:Java WorldGenDesertWells类的具体用法?Java WorldGenDesertWells怎么用?Java WorldGenDesertWells使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WorldGenDesertWells类属于net.minecraft.world.gen.feature包,在下文中一共展示了WorldGenDesertWells类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }

    if (rand.nextInt(64) == 0)
    {
        (new WorldGenFossils()).generate(worldIn, rand, pos);
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:18,代码来源:BiomeDesert.java

示例2: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.DESERT_WELL))
    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }

    if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FOSSIL))
    if (rand.nextInt(64) == 0)
    {
        (new WorldGenFossils()).generate(worldIn, rand, pos);
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:20,代码来源:BiomeDesert.java

示例3: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:13,代码来源:BiomeGenDesert.java

示例4: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World par1World, Random par2Random, int par3, int par4) {
	super.decorate(par1World, par2Random, par3, par4);

	if (par2Random.nextInt(500) != 0)
		return;
	int k = par3 + par2Random.nextInt(16) + 8;
	int l = par4 + par2Random.nextInt(16) + 8;
	WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
	worldgendesertwells.generate(par1World, par2Random, k, par1World.getHeightValue(k, l) + 1, l);
}
 
开发者ID:kormic911,项目名称:EvilOcean,代码行数:11,代码来源:BiomeGenDesertIsland.java

示例5: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
    super.decorate(par1World, par2Random, par3, par4);

    if (par2Random.nextInt(1000) == 0)
    {
        int var5 = par3 + par2Random.nextInt(16) + 8;
        int var6 = par4 + par2Random.nextInt(16) + 8;
        WorldGenDesertWells var7 = new WorldGenDesertWells();
        var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6);
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:13,代码来源:BiomeGenDesert.java

示例6: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
@Override
public void decorate(World world, Random rand, int chunkX, int chunkZ) {
	super.decorate(world, rand, chunkX, chunkZ);

	if (rand.nextInt(1000) == 0) {
		int k = chunkX + rand.nextInt(16) + 8;
		int l = chunkZ + rand.nextInt(16) + 8;
		WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
		worldgendesertwells.generate(world, rand, k,
				world.getHeightValue(k, l) + 1, l);
	}
}
 
开发者ID:TheDarkEra,项目名称:TheDarkEra,代码行数:13,代码来源:BiomeDeadLand.java

示例7: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World p_76728_1_, Random p_76728_2_, int p_76728_3_, int p_76728_4_)
{
    super.decorate(p_76728_1_, p_76728_2_, p_76728_3_, p_76728_4_);

    if (p_76728_2_.nextInt(1000) == 0)
    {
        int k = p_76728_3_ + p_76728_2_.nextInt(16) + 8;
        int l = p_76728_4_ + p_76728_2_.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(p_76728_1_, p_76728_2_, k, p_76728_1_.getHeightValue(k, l) + 1, l);
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:13,代码来源:BiomeGenDesert.java

示例8: func_76728_a

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void func_76728_a(World p_76728_1_, Random p_76728_2_, int p_76728_3_, int p_76728_4_) {
   super.func_76728_a(p_76728_1_, p_76728_2_, p_76728_3_, p_76728_4_);
   if(p_76728_2_.nextInt(1000) == 0) {
      int var5 = p_76728_3_ + p_76728_2_.nextInt(16) + 8;
      int var6 = p_76728_4_ + p_76728_2_.nextInt(16) + 8;
      WorldGenDesertWells var7 = new WorldGenDesertWells();
      var7.func_76484_a(p_76728_1_, p_76728_2_, var5, p_76728_1_.func_72976_f(var5, var6) + 1, var6);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:11,代码来源:BiomeGenDesert.java

示例9: decorate

import net.minecraft.world.gen.feature.WorldGenDesertWells; //导入依赖的package包/类
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
    super.decorate(par1World, par2Random, par3, par4);

    if (par2Random.nextInt(1000) == 0)
    {
        int k = par3 + par2Random.nextInt(16) + 8;
        int l = par4 + par2Random.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(par1World, par2Random, k, par1World.getHeightValue(k, l) + 1, l);
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:13,代码来源:BiomeGenDesert.java


注:本文中的net.minecraft.world.gen.feature.WorldGenDesertWells类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。