@Override public void decorate(World worldIn, Random rand, BlockPos pos) { this.decorator.flowerGen = orchidGen;//setting this in the constructor is not enough, really not sure why super.decorate(worldIn, rand, pos); }
@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); } }
@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); }
biome.decorate(world, rand, new BlockPos(chunkStartXInWorld, 0, chunkStartZInWorld));
biome.decorate(world, rand, blockpos);
biome.decorate(w, this.rand, pos);