public class RangedBowAttackGoal<T extends MonsterEntity & IRangedAttackMob> extends Goal
Constructor and Description |
---|
RangedBowAttackGoal(T mob,
double moveSpeedAmpIn,
int attackCooldownIn,
float maxAttackDistanceIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isBowInMainhand() |
void |
resetTask() |
void |
setAttackCooldown(int p_189428_1_) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags
public RangedBowAttackGoal(T mob, double moveSpeedAmpIn, int attackCooldownIn, float maxAttackDistanceIn)
public void setAttackCooldown(int p_189428_1_)
public boolean shouldExecute()
shouldExecute
in class Goal
protected boolean isBowInMainhand()
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal