use of net.minecraft.entity.passive.EntityPig in project Traverse by ProfessorProspector.
the class BiomeMiniJungle method decorate.
public void decorate(World worldIn, Random rand, BlockPos pos) {
super.decorate(worldIn, rand, pos);
int i = rand.nextInt(16) + 8;
int j = rand.nextInt(16) + 8;
// could == 0, which crashes nextInt
int height = worldIn.getHeight(pos.add(i, 0, j)).getY() * 2;
if (height < 1)
height = 1;
int k = rand.nextInt(height);
if (net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.PUMPKIN))
(new WorldGenMelon()).generate(worldIn, rand, pos.add(i, k, j));
WorldGenVines worldgenvines = new WorldGenVines();
if (net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.GRASS))
for (j = 0; j < 50; ++j) {
k = rand.nextInt(16) + 8;
int l = 128;
int i1 = rand.nextInt(16) + 8;
worldgenvines.generate(worldIn, rand, pos.add(k, 128, i1));
EntityPig pig = new EntityPig(worldIn);
}
}
Aggregations