static class SpiderEntity.TargetGoal<T extends LivingEntity> extends NearestAttackableTargetGoal<T>
nearestTarget, targetChance, targetClass, targetEntitySelector
goalOwner, shouldCheckSight, target, unseenMemoryTicks
Constructor and Description |
---|
TargetGoal(SpiderEntity spider,
java.lang.Class<T> classTarget) |
Modifier and Type | Method and Description |
---|---|
boolean |
shouldExecute() |
findNearestTarget, getTargetableArea, startExecuting
getTargetDistance, isSuitableTarget, resetTask, setUnseenMemoryTicks, shouldContinueExecuting
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
public TargetGoal(SpiderEntity spider, java.lang.Class<T> classTarget)
public boolean shouldExecute()
shouldExecute
in class NearestAttackableTargetGoal<T extends LivingEntity>