public class NonTamedTargetGoal<T extends LivingEntity> extends NearestAttackableTargetGoal<T>
| Modifier and Type | Field and Description |
|---|---|
private TameableEntity |
tameable |
nearestTarget, targetChance, targetClass, targetEntitySelectorgoalOwner, 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, startExecutinggetTargetDistance, isSuitableTarget, resetTask, setUnseenMemoryTicksgetMutexFlags, isPreemptible, setMutexFlags, tick, toStringprivate 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