    001    package net.minecraft.src;
    002
    003    import java.util.ArrayList;
    004    import java.util.List;
    005
    006    public class MapGenNetherBridge extends MapGenStructure
    007    {
    008        private List spawnList = new ArrayList();
    009
    010        public MapGenNetherBridge()
    011        {
    012            this.spawnList.add(new SpawnListEntry(EntityBlaze.class, 10, 2, 3));
    013            this.spawnList.add(new SpawnListEntry(EntityPigZombie.class, 5, 4, 4));
    014            this.spawnList.add(new SpawnListEntry(EntitySkeleton.class, 10, 4, 4));
    015            this.spawnList.add(new SpawnListEntry(EntityMagmaCube.class, 3, 4, 4));
    016        }
    017
    018        public List getSpawnList()
    019        {
    020            return this.spawnList;
    021        }
    022
    023        protected boolean canSpawnStructureAtCoords(int par1, int par2)
    024        {
    025            int var3 = par1 >> 4;
    026            int var4 = par2 >> 4;
    027            this.rand.setSeed((long)(var3 ^ var4 << 4) ^ this.worldObj.getSeed());
    028            this.rand.nextInt();
    029            return this.rand.nextInt(3) != 0 ? false : (par1 != (var3 << 4) + 4 + this.rand.nextInt(8) ? false : par2 == (var4 << 4) + 4 + this.rand.nextInt(8));
    030        }
    031
    032        protected StructureStart getStructureStart(int par1, int par2)
    033        {
    034            return new StructureNetherBridgeStart(this.worldObj, this.rand, par1, par2);
    035        }
    036    }