public class ProjectileAttackGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
maxIntervalTicks |
private float |
maxShootRange |
private int |
minIntervalTicks |
private MobEntity |
mob |
private double |
mobSpeed |
private RangedAttackMob |
owner |
private int |
seenTargetTicks |
private float |
squaredMaxShootRange |
private LivingEntity |
target |
private int |
updateCountdownTicks |
Constructor and Description |
---|
ProjectileAttackGoal(RangedAttackMob mob,
double mobSpeed,
int intervalTicks,
float maxShootRange) |
ProjectileAttackGoal(RangedAttackMob mob,
double mobSpeed,
int minIntervalTicks,
int maxIntervalTicks,
float maxShootRange) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, start, toString
private final MobEntity mob
private final RangedAttackMob owner
private LivingEntity target
private int updateCountdownTicks
private final double mobSpeed
private int seenTargetTicks
private final int minIntervalTicks
private final int maxIntervalTicks
private final float maxShootRange
private final float squaredMaxShootRange
public ProjectileAttackGoal(RangedAttackMob mob, double mobSpeed, int intervalTicks, float maxShootRange)
public ProjectileAttackGoal(RangedAttackMob mob, double mobSpeed, int minIntervalTicks, int maxIntervalTicks, float maxShootRange)