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, 10, 4, 4));
014 this.spawnList.add(new SpawnListEntry(EntityMagmaCube.class, 3, 4, 4));
015 }
016
017 public List getSpawnList()
018 {
019 return this.spawnList;
020 }
021
022 protected boolean canSpawnStructureAtCoords(int par1, int par2)
023 {
024 int var3 = par1 >> 4;
025 int var4 = par2 >> 4;
026 this.rand.setSeed((long)(var3 ^ var4 << 4) ^ this.worldObj.getSeed());
027 this.rand.nextInt();
028 return this.rand.nextInt(3) != 0 ? false : (par1 != (var3 << 4) + 4 + this.rand.nextInt(8) ? false : par2 == (var4 << 4) + 4 + this.rand.nextInt(8));
029 }
030
031 protected StructureStart getStructureStart(int par1, int par2)
032 {
033 return new StructureNetherBridgeStart(this.worldObj, this.rand, par1, par2);
034 }
035 }