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

public class NearestAttackableTargetGoal<T extends LivingEntity>

extends TargetGoal

boo
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
net.minecraft.class_1400
net.minecraft.entity.ai.goal.ActiveTargetGoal
net.minecraft.src.C_738_
net.minecraft.world.entity.ai.goal.target.PathfinderGoalNearestAttackableTarget

Field summary

Modifier and TypeField
private static final int
i
DEFAULT_RANDOM_INTERVAL
field_36304
DEFAULT_RECIPROCAL_CHANCE
f_199889_
protected final Class<T>
a
targetType
field_6643
targetClass
f_26048_
protected final int
b
randomInterval
field_6641
reciprocalChance
f_26049_
protected LivingEntity
c
target
field_6644
targetEntity
f_26050_
protected TargetingConditions
d
targetConditions
field_6642
targetPredicate
f_26051_

Constructor summary

ModifierConstructor
public (Mob mob, Class<T> targetClass, boolean checkVisibility)
public (Mob mob, Class<T> targetClass, boolean checkVisibility, Predicate<LivingEntity> targetPredicate)
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()
m_8036_()
protected AABB
a(double arg0)
getTargetSearchArea(double arg0)
method_6321(double arg0)
getSearchBox(double distance)
m_7255_(double arg0)
protected void
h()
findTarget()
method_18415()
findClosestTarget()
m_26073_()
public void
c()
start()
method_6269()
start()
m_8056_()
public void
a(bfz arg0)
setTarget(LivingEntity arg0)
method_24632(class_1309 arg0)
setTargetEntity(LivingEntity targetEntity)
m_26070_(C_524_ arg0)