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 attackCooldownIn) |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toString
public RangedBowAttackGoal(T mob, double moveSpeedAmpIn, int attackCooldownIn, float maxAttackDistanceIn)
public void setAttackCooldown(int attackCooldownIn)
public boolean shouldExecute()
shouldExecute
in class Goal
protected boolean isBowInMainhand()
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal