|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.src.Entity
net.minecraft.src.EntityLiving
net.minecraft.src.EntityCreature
net.minecraft.src.EntityAgeable
net.minecraft.src.EntityAnimal
net.minecraft.src.EntityPig
public class EntityPig
| Field Summary |
|---|
| Fields inherited from class net.minecraft.src.EntityAnimal |
|---|
inLove |
| Constructor Summary | |
|---|---|
EntityPig(World par1World)
|
|
| Method Summary | |
|---|---|
boolean |
func_82171_bF()
|
EntityAIControlledByPlayer |
func_82183_n()
|
int |
getMaxHealth()
|
boolean |
getSaddled()
Returns true if the pig is saddled. |
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 |
isWheat(ItemStack par1ItemStack)
Checks if the parameter is an wheat item. |
void |
onStruckByLightning(EntityLightningBolt par1EntityLightningBolt)
Called when a lightning bolt hits the entity. |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
setSaddled(boolean par1)
Set or remove the saddle of the pig. |
EntityAnimal |
spawnBabyAnimal(EntityAnimal par1EntityAnimal)
This function is used when two same-species animals in 'love mode' breed to generate the new baby animal. |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
| Methods inherited from class net.minecraft.src.EntityAnimal |
|---|
attackEntityFrom, canMateWith, getBlockPathWeight, getCanSpawnHere, getTalkInterval, isInLove, onLivingUpdate, resetInLove |
| Methods inherited from class net.minecraft.src.EntityAgeable |
|---|
getGrowingAge, isChild, setGrowingAge |
| Methods inherited from class net.minecraft.src.EntityCreature |
|---|
getEntityToAttack, getSpeedModifier, hasPath, setPathToEntity, setTarget |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityPig(World par1World)
| Method Detail |
|---|
public boolean isAIEnabled()
public int getMaxHealth()
getMaxHealth in class EntityLivingpublic boolean func_82171_bF()
func_82171_bF in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT in class EntityAnimalpublic void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT in class EntityAnimalpublic boolean interact(EntityPlayer par1EntityPlayer)
interact in class EntityAnimalpublic boolean getSaddled()
public void setSaddled(boolean par1)
public void onStruckByLightning(EntityLightningBolt par1EntityLightningBolt)
onStruckByLightning in class Entitypublic EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
spawnBabyAnimal in class EntityAnimalpublic boolean isWheat(ItemStack par1ItemStack)
isWheat in class EntityAnimalpublic EntityAIControlledByPlayer func_82183_n()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||