|
||||||||||
| 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
public abstract class EntityAgeable
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
EntityAgeable(World par1World)
|
|
| Method Summary | |
|---|---|
abstract EntityAgeable |
createChild(EntityAgeable var1)
|
int |
getGrowingAge()
The age value may be negative or positive or zero. |
boolean |
interact(EntityPlayer par1EntityPlayer)
Called when a player interacts with a mob. |
boolean |
isChild()
If Animal, checks if the age timer is negative |
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 |
setGrowingAge(int par1)
The age value may be negative or positive or zero. |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
| 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 |
| Constructor Detail |
|---|
public EntityAgeable(World par1World)
| Method Detail |
|---|
public abstract EntityAgeable createChild(EntityAgeable var1)
public boolean interact(EntityPlayer par1EntityPlayer)
interact in class Entitypublic int getGrowingAge()
public void setGrowingAge(int par1)
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT in class EntityLivingpublic void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT in class EntityLivingpublic void onLivingUpdate()
onLivingUpdate in class EntityLivingpublic boolean isChild()
isChild in class EntityLiving
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||