public class EntityAIAttackMelee extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
protected EntityCreature |
attacker |
protected int |
attackInterval |
Constructor and Description |
---|
EntityAIAttackMelee(EntityCreature creature,
double speedIn,
boolean useLongMemory) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecuting() |
protected double |
getAttackReachSqr(EntityLivingBase attackTarget) |
void |
resetTask() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBits
protected EntityCreature attacker
protected final int attackInterval
public EntityAIAttackMelee(EntityCreature creature, double speedIn, boolean useLongMemory)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean continueExecuting()
continueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase
protected double getAttackReachSqr(EntityLivingBase attackTarget)