public class RangedBowAttackGoal<T extends MonsterEntity & IRangedAttackMob> extends Goal
Modifier and Type | Field and Description |
---|---|
private int |
attackCooldown |
private int |
attackTime |
private T |
entity |
private float |
maxAttackDistance |
private double |
moveSpeedAmp |
private int |
seeTime |
private boolean |
strafingBackwards |
private boolean |
strafingClockwise |
private int |
strafingTime |
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
private final T extends MonsterEntity & IRangedAttackMob entity
private final double moveSpeedAmp
private int attackCooldown
private final float maxAttackDistance
private int attackTime
private int seeTime
private boolean strafingClockwise
private boolean strafingBackwards
private int strafingTime
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