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 |
static IntRange |
field_25696 |
private int |
field_25697 |
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, toString
public static final IntRange field_25696
private 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
private int field_25697
public CrossbowAttackGoal(T actor, double speed, float range)
private boolean isEntityHoldingCrossbow()
public boolean shouldContinue()
shouldContinue
in class Goal
private boolean hasAliveTarget()
private boolean isUncharged()