本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}