public class FollowTargetIfTamedGoal<T extends LivingEntity> extends FollowTargetGoal<T>
Goal.Control
Modifier and Type | Field and Description |
---|---|
private TameableEntity |
tameable |
reciprocalChance, targetClass, targetEntity, targetPredicate
checkVisibility, 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, start
canTrack, getFollowRange, setMaxTimeWithoutVisibility, stop
canStop, getControls, setControls, tick, toString
private 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