public class NonTamedTargetGoal<T extends LivingEntity> extends NearestAttackableTargetGoal<T>
Modifier and Type | Field and Description |
---|---|
private TameableEntity |
tameable |
nearestTarget, targetChance, targetClass, targetEntitySelector
goalOwner, shouldCheckSight, target, unseenMemoryTicks
Constructor and Description |
---|
NonTamedTargetGoal(TameableEntity tameableIn,
java.lang.Class<T> targetClassIn,
boolean checkSight,
java.util.function.Predicate<LivingEntity> targetPredicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
findNearestTarget, getTargetableArea, startExecuting
getTargetDistance, isSuitableTarget, resetTask, setUnseenMemoryTicks
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
private final TameableEntity tameable
public NonTamedTargetGoal(TameableEntity tameableIn, java.lang.Class<T> targetClassIn, boolean checkSight, @Nullable java.util.function.Predicate<LivingEntity> targetPredicate)
public boolean shouldExecute()
shouldExecute
in class NearestAttackableTargetGoal<T extends LivingEntity>
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class TargetGoal