public class FollowTargetIfTamedGoal<T extends LivingEntity> extends FollowTargetGoal<T>
Goal.Control| Modifier and Type | Field and Description |
|---|---|
private TameableEntity |
tameable |
reciprocalChance, targetClass, targetEntity, targetPredicatecheckVisibility, maxTimeWithoutVisibility, mob, target| Constructor and Description |
|---|
FollowTargetIfTamedGoal(TameableEntity tameable,
Class<T> targetClass,
boolean checkVisibility,
Predicate<LivingEntity> targetPredicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
findClosestTarget, getSearchBox, setTargetEntity, startcanTrack, getFollowRange, setMaxTimeWithoutVisibility, stopcanStop, getControls, setControls, tick, toStringprivate final TameableEntity tameable
public FollowTargetIfTamedGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, @Nullable Predicate<LivingEntity> targetPredicate)
public boolean canStart()
canStart in class FollowTargetGoal<T extends LivingEntity>public boolean shouldContinue()
shouldContinue in class TrackTargetGoal