public class TrackOwnerAttackerGoal extends TrackTargetGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private LivingEntity |
attacker |
private int |
lastAttackedTime |
private TameableEntity |
tameable |
checkVisibility, maxTimeWithoutVisibility, mob, target
Constructor and Description |
---|
TrackOwnerAttackerGoal(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 attacker
private int lastAttackedTime
public TrackOwnerAttackerGoal(TameableEntity tameable)
public void start()
start
in class TrackTargetGoal