public class RangedAttackGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private int |
attackIntervalMin |
private float |
attackRadius |
private LivingEntity |
attackTarget |
private MobEntity |
entityHost |
private double |
entityMoveSpeed |
private float |
maxAttackDistance |
private int |
maxRangedAttackTime |
private IRangedAttackMob |
rangedAttackEntityHost |
private int |
rangedAttackTime |
private int |
seeTime |
Constructor and Description |
---|
RangedAttackGoal(IRangedAttackMob attacker,
double movespeed,
int maxAttackTime,
float maxAttackDistanceIn) |
RangedAttackGoal(IRangedAttackMob attacker,
double movespeed,
int p_i1650_4_,
int maxAttackTime,
float maxAttackDistanceIn) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, startExecuting, toString
private final MobEntity entityHost
private final IRangedAttackMob rangedAttackEntityHost
private LivingEntity attackTarget
private int rangedAttackTime
private final double entityMoveSpeed
private int seeTime
private final int attackIntervalMin
private final int maxRangedAttackTime
private final float attackRadius
private final float maxAttackDistance
public RangedAttackGoal(IRangedAttackMob attacker, double movespeed, int maxAttackTime, float maxAttackDistanceIn)
public RangedAttackGoal(IRangedAttackMob attacker, double movespeed, int p_i1650_4_, int maxAttackTime, float maxAttackDistanceIn)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal