本文整理汇总了Java中net.minecraft.world.gen.feature.WorldGenDesertWells.generate方法的典型用法代码示例。如果您正苦于以下问题:Java WorldGenDesertWells.generate方法的具体用法?Java WorldGenDesertWells.generate怎么用?Java WorldGenDesertWells.generate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.gen.feature.WorldGenDesertWells
的用法示例。
在下文中一共展示了WorldGenDesertWells.generate方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: 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);
}
}
示例3: 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);
}
}
示例4: 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);
}
}
示例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 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);
}
}