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, setMutexFlagspublic RangedBowAttackGoal(T mob, double moveSpeedAmpIn, int attackCooldownIn, float maxAttackDistanceIn)
public void setAttackCooldown(int p_189428_1_)
public boolean shouldExecute()
shouldExecute in class Goalprotected boolean isBowInMainhand()
public boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goal