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

public class NearestAttackableTargetGoal<T extends LivingEntity>

extends TargetGoal

cex
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
net.minecraft.class_1400
net.minecraft.entity.ai.goal.ActiveTargetGoal
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
protected final Class<T>
a
targetType
field_6643
targetClass
protected final int
b
randomInterval
field_6641
reciprocalChance
protected LivingEntity
c
target
field_6644
targetEntity
protected TargetingConditions
d
targetConditions
field_6642
targetPredicate

Constructor summary

ModifierConstructor
public (Mob mob, Class<T> targetClass, boolean checkVisibility)
public (Mob mob, Class<T> targetClass, boolean checkVisibility, TargetingConditions$Selector predicate)
public (Mob mob, Class<T> targetClass, boolean checkVisibility, boolean checkCanNavigate)
public (Mob mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, TargetingConditions$Selector targetPredicate)

Method summary

Modifier and TypeMethod
public boolean
b()
canUse()
method_6264()
canStart()
protected AABB
a(double arg0)
getTargetSearchArea(double arg0)
method_6321(double arg0)
getSearchBox(double distance)
protected void
h()
findTarget()
method_18415()
findClosestTarget()
public void
d()
start()
method_6269()
start()
public void
a(bwg arg0)
setTarget(LivingEntity arg0)
method_24632(class_1309 arg0)
setTargetEntity(LivingEntity targetEntity)
private TargetingConditions
i()
getTargetConditions()
method_61438()
getAndUpdateTargetPredicate()