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


Java WorldGenDesertWells.generate方法代码示例

本文整理汇总了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);
}
 
开发者ID:kormic911,项目名称:EvilOcean,代码行数:11,代码来源:BiomeGenDesertIsland.java

示例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);
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:13,代码来源:BiomeGenDesert.java

示例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);
	}
}
 
开发者ID:TheDarkEra,项目名称:TheDarkEra,代码行数:13,代码来源:BiomeDeadLand.java

示例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);
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:13,代码来源:BiomeGenDesert.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 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.generate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。