public class Village extends java.lang.Object implements ICapabilitySerializable<NBTTagCompound>
public Village()
public Village(World worldIn)
public void setWorld(World worldIn)
public void tick(int tickCounterIn)
public BlockPos getCenter()
public int getVillageRadius()
public int getNumVillageDoors()
public int getTicksSinceLastDoorAdding()
public int getNumVillagers()
public boolean isBlockPosWithinSqVillageRadius(BlockPos pos)
public java.util.List<VillageDoorInfo> getVillageDoorInfoList()
public VillageDoorInfo getNearestDoor(BlockPos pos)
public VillageDoorInfo getDoorInfo(BlockPos pos)
@Nullable public VillageDoorInfo getExistedDoor(BlockPos doorBlock)
public void addVillageDoorInfo(VillageDoorInfo doorInfo)
public boolean isAnnihilated()
public void addOrRenewAgressor(EntityLivingBase entitylivingbaseIn)
@Nullable public EntityLivingBase findNearestVillageAggressor(EntityLivingBase entitylivingbaseIn)
public EntityPlayer getNearestTargetPlayer(EntityLivingBase villageDefender)
@Deprecated public int getPlayerReputation(java.lang.String playerName)
public int getPlayerReputation(java.util.UUID playerName)
@Deprecated public int modifyPlayerReputation(java.lang.String playerName, int reputation)
public int modifyPlayerReputation(java.util.UUID playerName, int reputation)
@Deprecated public boolean isPlayerReputationTooLow(java.lang.String playerName)
public boolean isPlayerReputationTooLow(java.util.UUID uuid)
public void readVillageDataFromNBT(NBTTagCompound compound)
public void writeVillageDataToNBT(NBTTagCompound compound)
public void endMatingSeason()
public boolean isMatingSeason()
public void setDefaultPlayerReputation(int defaultReputation)
public boolean hasCapability(Capability<?> capability, @Nullable EnumFacing facing)
ICapabilityProvider
hasCapability
in interface ICapabilityProvider
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'public <T> T getCapability(Capability<T> capability, @Nullable EnumFacing facing)
ICapabilityProvider
getCapability
in interface ICapabilityProvider
capability
- The capability to checkfacing
- The Side to check from:
CAN BE NULL. Null is defined to represent 'internal' or 'self'ICapabilityProvider.hasCapability(Capability, EnumFacing)
would return false.public void deserializeNBT(NBTTagCompound nbt)
deserializeNBT
in interface INBTSerializable<NBTTagCompound>
public NBTTagCompound serializeNBT()
serializeNBT
in interface INBTSerializable<NBTTagCompound>