net.minecraft.entity.ai.goal

public class ActiveTargetGoal<T extends LivingEntity>

extends TrackTargetGoal

net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
net.minecraft.class_1400
net.minecraft.entity.ai.goal.ActiveTargetGoal

Field summary

Modifier and TypeField
private static final int
DEFAULT_RANDOM_INTERVAL
field_36304
DEFAULT_RECIPROCAL_CHANCE
protected final Class<T>
targetType
field_6643
targetClass
protected final int
randomInterval
field_6641
reciprocalChance
protected LivingEntity
target
field_6644
targetEntity
protected final TargetPredicate
targetConditions
field_6642
targetPredicate

Constructor summary

ModifierConstructor
public (MobEntity mob, Class<T> targetClass, boolean checkVisibility)
public (MobEntity mob, Class<T> targetClass, boolean checkVisibility, TargetPredicate$EntityPredicate predicate)
public (MobEntity mob, Class<T> targetClass, boolean checkVisibility, boolean checkCanNavigate)
public (MobEntity mob, Class<T> targetClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, TargetPredicate$EntityPredicate targetPredicate)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
protected Box
getTargetSearchArea(double followDistance)
method_6321(double arg0)
getSearchBox(double distance)
protected void
findTarget()
method_18415()
findClosestTarget()
public void
start()
method_6269()
start()
public void
setTarget(LivingEntity target)
method_24632(class_1309 arg0)
setTargetEntity(LivingEntity targetEntity)
private TargetPredicate
getTargetConditions()
method_61438()
getAndUpdateTargetPredicate()
private static boolean
lambda$findTarget$0(LivingEntity arg0)
method_31503(class_1309 arg0)
method_31503(LivingEntity arg0)