public class AttackGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
cooldown |
private MobEntity |
mob |
private LivingEntity |
target |
private BlockView |
world |
Constructor and Description |
---|
AttackGoal(MobEntity mob) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, start, toString
private final BlockView world
private final MobEntity mob
private LivingEntity target
private int cooldown
public AttackGoal(MobEntity mob)