class PolarBearEntity.AttackPlayerGoal extends NearestAttackableTargetGoal<PlayerEntity>
nearestTarget, targetChance, targetClass, targetEntitySelector
goalOwner, shouldCheckSight, target, unseenMemoryTicks
Constructor and Description |
---|
AttackPlayerGoal() |
Modifier and Type | Method and Description |
---|---|
protected double |
getTargetDistance() |
boolean |
shouldExecute() |
findNearestTarget, getTargetableArea, startExecuting
isSuitableTarget, resetTask, setUnseenMemoryTicks, shouldContinueExecuting
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
public boolean shouldExecute()
shouldExecute
in class NearestAttackableTargetGoal<PlayerEntity>
protected double getTargetDistance()
getTargetDistance
in class TargetGoal