本文整理了Java中net.minecraft.world.WorldEntitySpawner.performWorldGenSpawning()
方法的一些代码示例,展示了WorldEntitySpawner.performWorldGenSpawning()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorldEntitySpawner.performWorldGenSpawning()
方法的具体详情如下:
包路径:net.minecraft.world.WorldEntitySpawner
类名称:WorldEntitySpawner
方法名:performWorldGenSpawning
暂无
代码示例来源:origin: gegy1000/Terrarium
@Override
protected void composeDecoration(IChunkGenerator generator, World world, int chunkX, int chunkZ, Biome biome) {
int globalX = chunkX << 4;
int globalZ = chunkZ << 4;
biome.decorate(world, this.random, new BlockPos(globalX, 0, globalZ));
if (TerrainGen.populate(generator, world, this.random, chunkX, chunkZ, false, PopulateChunkEvent.Populate.EventType.ANIMALS)) {
WorldEntitySpawner.performWorldGenSpawning(world, biome, globalX + 8, globalZ + 8, 16, 16, this.random);
}
}
代码示例来源:origin: MCTCP/TerrainControl
@Override
public void placePopulationMobs(LocalBiome biome, Random random, ChunkCoordinate chunkCoord)
{
WorldEntitySpawner.performWorldGenSpawning(this.getWorld(), ((ForgeBiome) biome).getHandle(),
chunkCoord.getBlockXCenter(), chunkCoord.getBlockZCenter(),
ChunkCoordinate.CHUNK_X_SIZE, ChunkCoordinate.CHUNK_Z_SIZE, random);
}
代码示例来源:origin: McJtyMods/ModTutorials
@Override
public void populate(int x, int z) {
int i = x * 16;
int j = z * 16;
BlockPos blockpos = new BlockPos(i, 0, j);
Biome biome = this.worldObj.getBiome(blockpos.add(16, 0, 16));
// Add biome decorations (like flowers, grass, trees, ...)
biome.decorate(this.worldObj, this.random, blockpos);
// Make sure animals appropriate to the biome spawn here when the chunk is generated
WorldEntitySpawner.performWorldGenSpawning(this.worldObj, biome, i + 8, j + 8, 16, 16, this.random);
}
代码示例来源:origin: jabelar/ExampleMod-1.12
WorldEntitySpawner.performWorldGenSpawning(world, biome, chunkStartXInWorld + 8, chunkStartZInWorld + 8, 16, 16, rand);
代码示例来源:origin: McJtyMods/LostCities
WorldEntitySpawner.performWorldGenSpawning(w, biome, x + 8, z + 8, 16, 16, this.rand);
内容来源于网络,如有侵权,请联系作者删除!