|
||||||||||
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.EntityTameable
net.minecraft.entity.passive.EntityOcelot
public class EntityOcelot
Field Summary |
---|
Fields inherited from class net.minecraft.entity.passive.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. |
EntityAgeable |
createChild(EntityAgeable par1EntityAgeable)
|
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()
|
void |
initCreature()
Initialize this creature. |
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 |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
setTameSkin(int par1)
|
EntityOcelot |
spawnBabyAnimal(EntityAgeable par1EntityAgeable)
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.entity.passive.EntityTameable |
---|
func_70907_r, getOwner, getOwnerName, handleHealthUpdate, isSitting, isTamed, setOwner, setSitting, setTamed |
Methods inherited from class net.minecraft.entity.passive.EntityAnimal |
---|
getBlockPathWeight, 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 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 EntityOcelot spawnBabyAnimal(EntityAgeable par1EntityAgeable)
public boolean isBreedingItem(ItemStack par1ItemStack)
isBreedingItem
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 initCreature()
initCreature
in class EntityLiving
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 |