|
||||||||||
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.EntityAnimal
net.minecraft.entity.passive.EntityPig
public class EntityPig
Field Summary |
---|
Fields inherited from class net.minecraft.entity.passive.EntityAnimal |
---|
inLove |
Constructor Summary | |
---|---|
EntityPig(World par1World)
|
Method Summary | |
---|---|
boolean |
canBeSteered()
returns true if all the conditions for steering the entity are met. |
EntityAgeable |
createChild(EntityAgeable par1EntityAgeable)
|
EntityAIControlledByPlayer |
getAIControlledByPlayer()
Return the AI task for player control. |
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 |
isBreedingItem(ItemStack par1ItemStack)
Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type) |
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. |
EntityPig |
spawnBabyAnimal(EntityAgeable par1EntityAgeable)
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.entity.passive.EntityAnimal |
---|
attackEntityFrom, canMateWith, getBlockPathWeight, getCanSpawnHere, getTalkInterval, isInLove, onLivingUpdate, resetInLove |
Methods inherited from class net.minecraft.entity.EntityAgeable |
---|
getGrowingAge, isChild, setGrowingAge |
Methods inherited from class net.minecraft.entity.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 EntityLiving
public boolean canBeSteered()
canBeSteered
in class EntityLiving
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityAnimal
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityAnimal
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class EntityAnimal
public boolean getSaddled()
public void setSaddled(boolean par1)
public void onStruckByLightning(EntityLightningBolt par1EntityLightningBolt)
onStruckByLightning
in class Entity
public EntityPig spawnBabyAnimal(EntityAgeable par1EntityAgeable)
public boolean isBreedingItem(ItemStack par1ItemStack)
isBreedingItem
in class EntityAnimal
public EntityAIControlledByPlayer getAIControlledByPlayer()
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 |