net.minecraft.src
Class Village

java.lang.Object
  extended by net.minecraft.src.Village

public class Village
extends Object


Constructor Summary
Village(World par1World)
           
 
Method Summary
 void addOrRenewAgressor(EntityLiving par1EntityLiving)
           
 void addVillageDoorInfo(VillageDoorInfo par1VillageDoorInfo)
           
 VillageDoorInfo findNearestDoor(int par1, int par2, int par3)
           
 VillageDoorInfo findNearestDoorUnrestricted(int par1, int par2, int par3)
          Find a door suitable for shelter.
 EntityLiving findNearestVillageAggressor(EntityLiving par1EntityLiving)
           
 ChunkCoordinates getCenter()
           
 int getNumVillageDoors()
          Actually get num village door info entries, but that boils down to number of doors.
 int getNumVillagers()
           
 int getTicksSinceLastDoorAdding()
           
 VillageDoorInfo getVillageDoorAt(int par1, int par2, int par3)
           
 List getVillageDoorInfoList()
          called only by class EntityAIMoveThroughVillage
 int getVillageRadius()
           
 boolean isAnnihilated()
          Returns true, if there is not a single village door left.
 boolean isInRange(int par1, int par2, int par3)
          Returns true, if the given coordinates are within the bounding box of the village.
 void tick(int par1)
          Called periodically by VillageCollection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Village

public Village(World par1World)
Method Detail

tick

public void tick(int par1)
Called periodically by VillageCollection


getCenter

public ChunkCoordinates getCenter()

getVillageRadius

public int getVillageRadius()

getNumVillageDoors

public int getNumVillageDoors()
Actually get num village door info entries, but that boils down to number of doors. Called by EntityAIVillagerMate and VillageSiege


getTicksSinceLastDoorAdding

public int getTicksSinceLastDoorAdding()

getNumVillagers

public int getNumVillagers()

isInRange

public boolean isInRange(int par1,
                         int par2,
                         int par3)
Returns true, if the given coordinates are within the bounding box of the village.


getVillageDoorInfoList

public List getVillageDoorInfoList()
called only by class EntityAIMoveThroughVillage


findNearestDoor

public VillageDoorInfo findNearestDoor(int par1,
                                       int par2,
                                       int par3)

findNearestDoorUnrestricted

public VillageDoorInfo findNearestDoorUnrestricted(int par1,
                                                   int par2,
                                                   int par3)
Find a door suitable for shelter. If there are more doors in a distance of 16 blocks, then the least restricted one (i.e. the one protecting the lowest number of villagers) of them is chosen, else the nearest one regardless of restriction.


getVillageDoorAt

public VillageDoorInfo getVillageDoorAt(int par1,
                                        int par2,
                                        int par3)

addVillageDoorInfo

public void addVillageDoorInfo(VillageDoorInfo par1VillageDoorInfo)

isAnnihilated

public boolean isAnnihilated()
Returns true, if there is not a single village door left. Called by VillageCollection


addOrRenewAgressor

public void addOrRenewAgressor(EntityLiving par1EntityLiving)

findNearestVillageAggressor

public EntityLiving findNearestVillageAggressor(EntityLiving par1EntityLiving)