Package net.minecraft.src
Class Village
java.lang.Object
net.minecraft.src.Village
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrRenewAgressor(EntityLivingBase par1EntityLivingBase) voidaddVillageDoorInfo(VillageDoorInfo par1VillageDoorInfo) voidPrevent villager breeding for a fixed interval of timefindNearestDoor(int par1, int par2, int par3) findNearestDoorUnrestricted(int par1, int par2, int par3) Find a door suitable for shelter.findNearestVillageAggressor(EntityLivingBase par1EntityLivingBase) voidfunc_82683_b(int par1) func_82685_c(EntityLivingBase par1EntityLivingBase) voidfunc_82691_a(World par1World) intActually get num village door info entries, but that boils down to number of doors.intintgetReputationForPlayer(String par1Str) Return the village reputation for a playerintgetVillageDoorAt(int par1, int par2, int par3) called only by class EntityAIMoveThroughVillageintbooleanReturns true, if there is not a single village door left.booleanisInRange(int par1, int par2, int par3) Returns true, if the given coordinates are within the bounding box of the village.booleanReturn whether villagers mating refractory period has passedbooleanisPlayerReputationTooLow(String par1Str) Return whether this player has a too low reputation with this village.voidreadVillageDataFromNBT(NBTTagCompound par1NBTTagCompound) Read this village's data from NBT.intsetReputationForPlayer(String par1Str, int par2) Set the village reputation for a player.voidtick(int par1) Called periodically by VillageCollectionvoidwriteVillageDataToNBT(NBTTagCompound par1NBTTagCompound) Write this village's data to NBT.
-
Constructor Details
-
Village
public Village() -
Village
-
-
Method Details
-
func_82691_a
-
tick
public void tick(int par1) Called periodically by VillageCollection -
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
called only by class EntityAIMoveThroughVillage -
findNearestDoor
-
findNearestDoorUnrestricted
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
-
addVillageDoorInfo
-
isAnnihilated
public boolean isAnnihilated()Returns true, if there is not a single village door left. Called by VillageCollection -
addOrRenewAgressor
-
findNearestVillageAggressor
-
func_82685_c
-
getReputationForPlayer
Return the village reputation for a player -
setReputationForPlayer
Set the village reputation for a player. -
isPlayerReputationTooLow
Return whether this player has a too low reputation with this village. -
readVillageDataFromNBT
Read this village's data from NBT. -
writeVillageDataToNBT
Write this village's data to NBT. -
endMatingSeason
public void endMatingSeason()Prevent villager breeding for a fixed interval of time -
isMatingSeason
public boolean isMatingSeason()Return whether villagers mating refractory period has passed -
func_82683_b
public void func_82683_b(int par1)
-