|
||||||||||
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.monster.EntityMob
public abstract class EntityMob
Field Summary |
---|
Fields inherited from interface net.minecraft.entity.monster.IMob |
---|
mobSelector |
Constructor Summary | |
---|---|
EntityMob(World par1World)
|
Method Summary | |
---|---|
boolean |
attackEntityAsMob(Entity par1Entity)
|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
int |
getAttackStrength(Entity par1Entity)
Returns the amount of damage a mob should deal. |
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. |
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required. |
void |
onUpdate()
Called to update the entity's position/logic. |
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 EntityMob(World par1World)
Method Detail |
---|
public void onLivingUpdate()
onLivingUpdate
in class EntityLiving
public void onUpdate()
onUpdate
in class EntityLiving
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class EntityLiving
public boolean attackEntityAsMob(Entity par1Entity)
attackEntityAsMob
in class EntityLiving
public float getBlockPathWeight(int par1, int par2, int par3)
getBlockPathWeight
in class EntityCreature
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityCreature
public int getAttackStrength(Entity par1Entity)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |