public class AttackWithOwnerGoal extends TrackTargetGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private LivingEntity |
attacking |
private int |
lastAttackTime |
private TameableEntity |
tameable |
checkVisibility, maxTimeWithoutVisibility, mob, target
Constructor and Description |
---|
AttackWithOwnerGoal(TameableEntity tameable) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
void |
start() |
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
canStop, getControls, setControls, tick, toString
private final TameableEntity tameable
private LivingEntity attacking
private int lastAttackTime
public AttackWithOwnerGoal(TameableEntity tameable)
public void start()
start
in class TrackTargetGoal