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