|
||||||||||
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
public abstract class EntityAnimal
Field Summary | |
---|---|
int |
inLove
|
Fields inherited from class net.minecraft.src.EntityLiving |
---|
arrowHitTempCounter, arrowHitTimer, attackedAtYaw, attackTime, cameraPitch, carryoverDamage, deathTime, field_70730_aX, field_70731_aW, field_70769_ao, field_70770_ap, hurtTime, isJumping, jumpMovementFactor, landMovementFactor, legSwing, legYaw, maxHurtResistantTime, maxHurtTime, prevCameraPitch, prevHealth, prevLegYaw, prevRenderYawOffset, prevRotationYawHead, prevSwingProgress, renderYawOffset, rotationYawHead, swingProgress, tasks |
Constructor Summary | |
---|---|
EntityAnimal(World par1World)
|
Method Summary | |
---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
canMateWith(EntityAnimal par1EntityAnimal)
Returns true if the mob is currently able to mate with the specified mob. |
float |
getBlockPathWeight(int par1,
int par2,
int par3)
Takes a coordinate in and returns a weight to determine how likely this creature will try to path to the block. |
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity. |
int |
getTalkInterval()
Get number of ticks, at least during which the living entity will be silent. |
boolean |
interact(EntityPlayer par1EntityPlayer)
Called when a player interacts with a mob. |
boolean |
isInLove()
Returns if the entity is currently in 'love mode'. |
boolean |
isWheat(ItemStack par1ItemStack)
Checks if the parameter is an wheat item. |
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required. |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
resetInLove()
|
abstract EntityAnimal |
spawnBabyAnimal(EntityAnimal var1)
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.EntityAgeable |
---|
getGrowingAge, isChild, setGrowingAge |
Methods inherited from class net.minecraft.src.EntityCreature |
---|
getEntityToAttack, hasPath, setPathToEntity, setTarget |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int inLove
Constructor Detail |
---|
public EntityAnimal(World par1World)
Method Detail |
---|
public void onLivingUpdate()
onLivingUpdate
in class EntityAgeable
public abstract EntityAnimal spawnBabyAnimal(EntityAnimal var1)
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class EntityLiving
public float getBlockPathWeight(int par1, int par2, int par3)
getBlockPathWeight
in class EntityCreature
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityAgeable
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityAgeable
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityCreature
public int getTalkInterval()
getTalkInterval
in class EntityLiving
public boolean isWheat(ItemStack par1ItemStack)
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class Entity
public boolean isInLove()
public void resetInLove()
public boolean canMateWith(EntityAnimal par1EntityAnimal)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |