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