public class MeleeAttackGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
attackIntervalTicks |
private int |
field_24667 |
private long |
lastUpdateTime |
protected PathAwareEntity |
mob |
private Path |
path |
private boolean |
pauseWhenMobIdle |
private double |
speed |
private double |
targetX |
private double |
targetY |
private double |
targetZ |
private int |
updateCountdownTicks |
Constructor and Description |
---|
MeleeAttackGoal(PathAwareEntity mob,
double speed,
boolean pauseWhenMobIdle) |
Modifier and Type | Method and Description |
---|---|
protected void |
attack(LivingEntity target,
double squaredDistance) |
boolean |
canStart() |
protected double |
getSquaredMaxAttackDistance(LivingEntity entity) |
protected void |
method_28346() |
protected boolean |
method_28347() |
protected int |
method_28348() |
protected int |
method_28349() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
protected final PathAwareEntity mob
private final double speed
private final boolean pauseWhenMobIdle
private Path path
private double targetX
private double targetY
private double targetZ
private int updateCountdownTicks
private int field_24667
private final int attackIntervalTicks
private long lastUpdateTime
public MeleeAttackGoal(PathAwareEntity mob, double speed, boolean pauseWhenMobIdle)
public boolean shouldContinue()
shouldContinue
in class Goal
protected void attack(LivingEntity target, double squaredDistance)
protected void method_28346()
protected boolean method_28347()
protected int method_28348()
protected int method_28349()
protected double getSquaredMaxAttackDistance(LivingEntity entity)