net.minecraft.world.entity.ai.goal.target

public class NearestAttackableTargetGoal<T extends LivingEntity>

extends TargetGoal

awc
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
net.minecraft.class_1400
net.minecraft.entity.ai.goal.FollowTargetGoal
net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
net.minecraft.server.v1_16_R1.PathfinderGoalNearestAttackableTarget

Field summary

Modifier and TypeField
protected final Class<T>
a
targetType
field_6643
targetClass
field_75307_b
protected final int
b
randomInterval
field_6641
reciprocalChance
field_75308_c
protected LivingEntity
c
target
field_6644
targetEntity
field_75309_a
protected TargetingConditions
d
targetConditions
field_6642
targetPredicate
field_220779_d

Constructor summary

ModifierConstructor
public (Mob mob, Class<T> targetClass, boolean checkVisibility)
public (Mob mob, Class<T> targetClass, boolean checkVisibility, boolean checkCanNavigate)
public (Mob mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)

Method summary

Modifier and TypeMethod
public boolean
a()
canUse()
method_6264()
canStart()
func_75250_a()
protected AABB
a(double arg0)
getTargetSearchArea(double arg0)
method_6321(double arg0)
getSearchBox(double distance)
func_188511_a(double arg0)
protected void
g()
findTarget()
method_18415()
findClosestTarget()
func_220778_g()
public void
c()
start()
method_6269()
start()
func_75249_e()
public void
a(aoy arg0)
setTarget(LivingEntity arg0)
method_24632(class_1309 arg0)
setTargetEntity(LivingEntity targetEntity)
func_234054_a_(LivingEntity arg0)