|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.entity.Entity
net.minecraft.entity.EntityLiving
net.minecraft.entity.EntityCreature
net.minecraft.entity.EntityAgeable
net.minecraft.entity.passive.EntityVillager
public class EntityVillager
| Field Summary | |
|---|---|
static Map |
blacksmithSellingList
Selling list of Blacksmith items. |
static Map |
villagerStockList
a villagers recipe list is intialized off this list ; the 2 params are min/max amount they will trade for 1 emerald |
| Constructor Summary | |
|---|---|
EntityVillager(World par1World)
|
|
EntityVillager(World par1World,
int par2)
|
|
| Method Summary | |
|---|---|
static void |
addBlacksmithItem(MerchantRecipeList par0MerchantRecipeList,
int par1,
Random par2Random,
float par3)
|
static void |
addMerchantItem(MerchantRecipeList par0MerchantRecipeList,
int par1,
Random par2Random,
float par3)
each recipie takes a random stack from villagerStockList and offers it for 1 emerald |
EntityAgeable |
createChild(EntityAgeable par1EntityAgeable)
|
void |
func_82187_q()
|
EntityVillager |
func_90012_b(EntityAgeable par1EntityAgeable)
|
EntityPlayer |
getCustomer()
|
int |
getMaxHealth()
|
int |
getProfession()
|
MerchantRecipeList |
getRecipes(EntityPlayer par1EntityPlayer)
|
String |
getTexture()
|
void |
handleHealthUpdate(byte par1)
|
void |
initCreature()
Initialize this creature. |
boolean |
interact(EntityPlayer par1EntityPlayer)
Called when a player interacts with a mob. |
boolean |
isAIEnabled()
Returns true if the newer Entity AI code should be run |
boolean |
isMating()
|
boolean |
isPlaying()
|
boolean |
isTrading()
|
void |
onDeath(DamageSource par1DamageSource)
Called when the mob's health reaches 0. |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
setCustomer(EntityPlayer par1EntityPlayer)
|
void |
setMating(boolean par1)
|
void |
setPlaying(boolean par1)
|
void |
setProfession(int par1)
|
void |
setRecipes(MerchantRecipeList par1MerchantRecipeList)
|
void |
setRevengeTarget(EntityLiving par1EntityLiving)
|
void |
useRecipe(MerchantRecipe par1MerchantRecipe)
|
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
| Methods inherited from class net.minecraft.entity.EntityAgeable |
|---|
getGrowingAge, isChild, onLivingUpdate, setGrowingAge |
| Methods inherited from class net.minecraft.entity.EntityCreature |
|---|
getBlockPathWeight, getCanSpawnHere, getEntityToAttack, getSpeedModifier, hasPath, setPathToEntity, setTarget |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Map villagerStockList
public static final Map blacksmithSellingList
| Constructor Detail |
|---|
public EntityVillager(World par1World)
public EntityVillager(World par1World,
int par2)
| Method Detail |
|---|
public boolean isAIEnabled()
public boolean interact(EntityPlayer par1EntityPlayer)
interact in class EntityAgeablepublic int getMaxHealth()
getMaxHealth in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT in class EntityAgeablepublic void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT in class EntityAgeablepublic String getTexture()
getTexture in class EntityLivingpublic void setProfession(int par1)
public int getProfession()
public boolean isMating()
public void setMating(boolean par1)
public void setPlaying(boolean par1)
public boolean isPlaying()
public void setRevengeTarget(EntityLiving par1EntityLiving)
setRevengeTarget in class EntityLivingpublic void onDeath(DamageSource par1DamageSource)
onDeath in class EntityLivingpublic void setCustomer(EntityPlayer par1EntityPlayer)
setCustomer in interface IMerchantpublic EntityPlayer getCustomer()
getCustomer in interface IMerchantpublic boolean isTrading()
public void useRecipe(MerchantRecipe par1MerchantRecipe)
useRecipe in interface IMerchantpublic MerchantRecipeList getRecipes(EntityPlayer par1EntityPlayer)
getRecipes in interface IMerchantpublic void setRecipes(MerchantRecipeList par1MerchantRecipeList)
setRecipes in interface IMerchant
public static void addMerchantItem(MerchantRecipeList par0MerchantRecipeList,
int par1,
Random par2Random,
float par3)
public static void addBlacksmithItem(MerchantRecipeList par0MerchantRecipeList,
int par1,
Random par2Random,
float par3)
public void handleHealthUpdate(byte par1)
handleHealthUpdate in class EntityLivingpublic void initCreature()
initCreature in class EntityLivingpublic void func_82187_q()
public EntityVillager func_90012_b(EntityAgeable par1EntityAgeable)
public EntityAgeable createChild(EntityAgeable par1EntityAgeable)
createChild in class EntityAgeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||