public class Village
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addOrRenewAgressor(EntityLivingBase p_75575_1_) |
void |
addVillageDoorInfo(VillageDoorInfo p_75576_1_) |
void |
endMatingSeason()
Prevent villager breeding for a fixed interval of time
|
VillageDoorInfo |
findNearestDoor(int p_75564_1_,
int p_75564_2_,
int p_75564_3_) |
VillageDoorInfo |
findNearestDoorUnrestricted(int p_75569_1_,
int p_75569_2_,
int p_75569_3_)
Find a door suitable for shelter.
|
EntityLivingBase |
findNearestVillageAggressor(EntityLivingBase p_75571_1_) |
EntityPlayer |
func_82685_c(EntityLivingBase p_82685_1_) |
void |
func_82691_a(World p_82691_1_) |
ChunkCoordinates |
getCenter() |
int |
getNumVillageDoors()
Actually get num village door info entries, but that boils down to number of doors.
|
int |
getNumVillagers() |
int |
getReputationForPlayer(java.lang.String p_82684_1_)
Return the village reputation for a player
|
int |
getTicksSinceLastDoorAdding() |
VillageDoorInfo |
getVillageDoorAt(int p_75578_1_,
int p_75578_2_,
int p_75578_3_) |
java.util.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 p_75570_1_,
int p_75570_2_,
int p_75570_3_)
Returns true, if the given coordinates are within the bounding box of the village.
|
boolean |
isMatingSeason()
Return whether villagers mating refractory period has passed
|
boolean |
isPlayerReputationTooLow(java.lang.String p_82687_1_)
Return whether this player has a too low reputation with this village.
|
void |
readVillageDataFromNBT(NBTTagCompound p_82690_1_)
Read this village's data from NBT.
|
void |
setDefaultPlayerReputation(int p_82683_1_) |
int |
setReputationForPlayer(java.lang.String p_82688_1_,
int p_82688_2_)
Set the village reputation for a player.
|
void |
tick(int p_75560_1_)
Called periodically by VillageCollection
|
void |
writeVillageDataToNBT(NBTTagCompound p_82689_1_)
Write this village's data to NBT.
|
public Village()
public Village(World p_i1675_1_)
public void func_82691_a(World p_82691_1_)
public void tick(int p_75560_1_)
public ChunkCoordinates getCenter()
public int getVillageRadius()
public int getNumVillageDoors()
public int getTicksSinceLastDoorAdding()
public int getNumVillagers()
public boolean isInRange(int p_75570_1_,
int p_75570_2_,
int p_75570_3_)
public java.util.List getVillageDoorInfoList()
public VillageDoorInfo findNearestDoor(int p_75564_1_, int p_75564_2_, int p_75564_3_)
public VillageDoorInfo findNearestDoorUnrestricted(int p_75569_1_, int p_75569_2_, int p_75569_3_)
public VillageDoorInfo getVillageDoorAt(int p_75578_1_, int p_75578_2_, int p_75578_3_)
public void addVillageDoorInfo(VillageDoorInfo p_75576_1_)
public boolean isAnnihilated()
public void addOrRenewAgressor(EntityLivingBase p_75575_1_)
public EntityLivingBase findNearestVillageAggressor(EntityLivingBase p_75571_1_)
public EntityPlayer func_82685_c(EntityLivingBase p_82685_1_)
public int getReputationForPlayer(java.lang.String p_82684_1_)
public int setReputationForPlayer(java.lang.String p_82688_1_,
int p_82688_2_)
public boolean isPlayerReputationTooLow(java.lang.String p_82687_1_)
public void readVillageDataFromNBT(NBTTagCompound p_82690_1_)
public void writeVillageDataToNBT(NBTTagCompound p_82689_1_)
public void endMatingSeason()
public boolean isMatingSeason()
public void setDefaultPlayerReputation(int p_82683_1_)