public class EntityAIArrowAttack extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private EntityLivingBase |
attackTarget |
private EntityLiving |
entityHost
The entity the AI instance has been applied to
|
private double |
entityMoveSpeed |
private int |
field_75318_f |
private int |
field_96561_g |
private float |
field_96562_i |
private float |
maxAttackDistance |
private int |
maxRangedAttackTime
The maximum time the AI has to wait before peforming another ranged attack.
|
private IRangedAttackMob |
rangedAttackEntityHost
The entity (as a RangedAttackMob) the AI instance has been applied to.
|
private int |
rangedAttackTime
A decrementing tick that spawns a ranged attack once this value reaches 0.
|
| Constructor and Description |
|---|
EntityAIArrowAttack(IRangedAttackMob attacker,
double movespeed,
int p_i1649_4_,
float p_i1649_5_) |
EntityAIArrowAttack(IRangedAttackMob attacker,
double movespeed,
int p_i1650_4_,
int maxAttackTime,
float maxAttackDistanceIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
void |
resetTask()
Resets the task
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
updateTask()
Updates the task
|
getMutexBits, isInterruptible, setMutexBits, startExecutingprivate final EntityLiving entityHost
private final IRangedAttackMob rangedAttackEntityHost
private EntityLivingBase attackTarget
private int rangedAttackTime
private double entityMoveSpeed
private int field_75318_f
private int field_96561_g
private int maxRangedAttackTime
private float field_96562_i
private float maxAttackDistance
public EntityAIArrowAttack(IRangedAttackMob attacker, double movespeed, int p_i1649_4_, float p_i1649_5_)
public EntityAIArrowAttack(IRangedAttackMob attacker, double movespeed, int p_i1650_4_, int maxAttackTime, float maxAttackDistanceIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean continueExecuting()
continueExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBase