|
||||||||||
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.EntityTameable
net.minecraft.src.EntityOcelot
public class EntityOcelot
Field Summary |
---|
Fields inherited from class net.minecraft.src.EntityAnimal |
---|
inLove |
Constructor Summary | |
---|---|
EntityOcelot(World par1World)
|
Method Summary | |
---|---|
boolean |
attackEntityAsMob(Entity par1Entity)
|
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. |
void |
func_82163_bD()
|
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity. |
String |
getEntityName()
Gets the username of the entity. |
int |
getMaxHealth()
|
int |
getTameSkin()
|
String |
getTexture()
|
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 |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
setTameSkin(int par1)
|
EntityAnimal |
spawnBabyAnimal(EntityAnimal par1EntityAnimal)
This function is used when two same-species animals in 'love mode' breed to generate the new baby animal. |
void |
updateAITick()
main AI tick function, replaces updateEntityActionState |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
Methods inherited from class net.minecraft.src.EntityTameable |
---|
func_70907_r, getOwner, getOwnerName, handleHealthUpdate, isSitting, isTamed, setOwner, setSitting, setTamed |
Methods inherited from class net.minecraft.src.EntityAnimal |
---|
getBlockPathWeight, 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 EntityOcelot(World par1World)
Method Detail |
---|
public void updateAITick()
public String getTexture()
getTexture
in class EntityLiving
public boolean isAIEnabled()
public int getMaxHealth()
getMaxHealth
in class EntityLiving
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityTameable
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityTameable
public boolean attackEntityAsMob(Entity par1Entity)
attackEntityAsMob
in class EntityLiving
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class EntityAnimal
public boolean interact(EntityPlayer par1EntityPlayer)
interact
in class EntityAnimal
public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal)
spawnBabyAnimal
in class EntityAnimal
public boolean isWheat(ItemStack par1ItemStack)
isWheat
in class EntityAnimal
public boolean canMateWith(EntityAnimal par1EntityAnimal)
canMateWith
in class EntityAnimal
public int getTameSkin()
public void setTameSkin(int par1)
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityAnimal
public String getEntityName()
getEntityName
in class Entity
public void func_82163_bD()
func_82163_bD
in class EntityLiving
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |