public class CrossbowAttackGoal<T extends HostileEntity & RangedAttackMob & CrossbowUser> extends Goal
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
CrossbowAttackGoal.Stage |
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private T |
actor |
private int |
chargedTicksLeft |
private int |
seeingTargetTicker |
private double |
speed |
private float |
squaredRange |
private CrossbowAttackGoal.Stage |
stage |
| Constructor and Description |
|---|
CrossbowAttackGoal(T actor,
double speed,
float range) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
private boolean |
hasAliveTarget() |
private boolean |
isEntityHoldingCrossbow() |
private boolean |
isUncharged() |
boolean |
shouldContinue() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, start, toStringprivate final T extends HostileEntity & RangedAttackMob & CrossbowUser actor
private CrossbowAttackGoal.Stage stage
private final double speed
private final float squaredRange
private int seeingTargetTicker
private int chargedTicksLeft
public CrossbowAttackGoal(T actor, double speed, float range)
private boolean isEntityHoldingCrossbow()
public boolean shouldContinue()
shouldContinue in class Goalprivate boolean hasAliveTarget()
private boolean isUncharged()