public class BowAttackGoal<T extends HostileEntity & RangedAttackMob> extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private T |
actor |
private int |
attackInterval |
private boolean |
backward |
private int |
combatTicks |
private int |
cooldown |
private boolean |
movingToLeft |
private double |
speed |
private float |
squaredRange |
private int |
targetSeeingTicker |
Constructor and Description |
---|
BowAttackGoal(T actor,
double speed,
int attackInterval,
float range) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
protected boolean |
isHoldingBow() |
void |
setAttackInterval(int attackInterval) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
private final T extends HostileEntity & RangedAttackMob actor
private final double speed
private int attackInterval
private final float squaredRange
private int cooldown
private int targetSeeingTicker
private boolean movingToLeft
private boolean backward
private int combatTicks
public BowAttackGoal(T actor, double speed, int attackInterval, float range)
public void setAttackInterval(int attackInterval)
protected boolean isHoldingBow()
public boolean shouldContinue()
shouldContinue
in class Goal