YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.village.Village Class Reference

Public Member Functions

 Village ()
 
 Village (World par1World)
 
void func_82691_a (World par1World)
 
void tick (int par1)
 
ChunkCoordinates getCenter ()
 
int getVillageRadius ()
 
int getNumVillageDoors ()
 
int getTicksSinceLastDoorAdding ()
 
int getNumVillagers ()
 
boolean isInRange (int par1, int par2, int par3)
 
List getVillageDoorInfoList ()
 
VillageDoorInfo findNearestDoor (int par1, int par2, int par3)
 
VillageDoorInfo findNearestDoorUnrestricted (int par1, int par2, int par3)
 
VillageDoorInfo getVillageDoorAt (int par1, int par2, int par3)
 
void addVillageDoorInfo (VillageDoorInfo par1VillageDoorInfo)
 
boolean isAnnihilated ()
 
void addOrRenewAgressor (EntityLiving par1EntityLiving)
 
EntityLiving findNearestVillageAggressor (EntityLiving par1EntityLiving)
 
EntityPlayer func_82685_c (EntityLiving par1EntityLiving)
 
int getReputationForPlayer (String par1Str)
 
int setReputationForPlayer (String par1Str, int par2)
 
boolean isPlayerReputationTooLow (String par1Str)
 
void readVillageDataFromNBT (NBTTagCompound par1NBTTagCompound)
 
void writeVillageDataToNBT (NBTTagCompound par1NBTTagCompound)
 
void endMatingSeason ()
 
boolean isMatingSeason ()
 
void func_82683_b (int par1)
 

Constructor & Destructor Documentation

net.minecraft.village.Village.Village ( )
net.minecraft.village.Village.Village ( World  par1World)

Member Function Documentation

void net.minecraft.village.Village.addOrRenewAgressor ( EntityLiving  par1EntityLiving)
void net.minecraft.village.Village.addVillageDoorInfo ( VillageDoorInfo  par1VillageDoorInfo)
void net.minecraft.village.Village.endMatingSeason ( )

Prevent villager breeding for a fixed interval of time

VillageDoorInfo net.minecraft.village.Village.findNearestDoor ( int  par1,
int  par2,
int  par3 
)
VillageDoorInfo net.minecraft.village.Village.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.

EntityLiving net.minecraft.village.Village.findNearestVillageAggressor ( EntityLiving  par1EntityLiving)
void net.minecraft.village.Village.func_82683_b ( int  par1)
EntityPlayer net.minecraft.village.Village.func_82685_c ( EntityLiving  par1EntityLiving)
void net.minecraft.village.Village.func_82691_a ( World  par1World)
ChunkCoordinates net.minecraft.village.Village.getCenter ( )
int net.minecraft.village.Village.getNumVillageDoors ( )

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

int net.minecraft.village.Village.getNumVillagers ( )
int net.minecraft.village.Village.getReputationForPlayer ( String  par1Str)

Return the village reputation for a player

int net.minecraft.village.Village.getTicksSinceLastDoorAdding ( )
VillageDoorInfo net.minecraft.village.Village.getVillageDoorAt ( int  par1,
int  par2,
int  par3 
)
List net.minecraft.village.Village.getVillageDoorInfoList ( )

called only by class EntityAIMoveThroughVillage

int net.minecraft.village.Village.getVillageRadius ( )
boolean net.minecraft.village.Village.isAnnihilated ( )

Returns true, if there is not a single village door left. Called by VillageCollection

boolean net.minecraft.village.Village.isInRange ( int  par1,
int  par2,
int  par3 
)

Returns true, if the given coordinates are within the bounding box of the village.

boolean net.minecraft.village.Village.isMatingSeason ( )

Return whether villagers mating refractory period has passed

boolean net.minecraft.village.Village.isPlayerReputationTooLow ( String  par1Str)

Return whether this player has a too low reputation with this village.

void net.minecraft.village.Village.readVillageDataFromNBT ( NBTTagCompound  par1NBTTagCompound)

Read this village's data from NBT.

int net.minecraft.village.Village.setReputationForPlayer ( String  par1Str,
int  par2 
)

Set the village reputation for a player.

void net.minecraft.village.Village.tick ( int  par1)

Called periodically by VillageCollection

void net.minecraft.village.Village.writeVillageDataToNBT ( NBTTagCompound  par1NBTTagCompound)

Write this village's data to NBT.


The documentation for this class was generated from the following file: