net.minecraft.entity.ai.goal

public class LookAtEntityGoal

extends Goal

net.minecraft.world.entity.ai.goal.LookAtPlayerGoal
net.minecraft.class_1361
net.minecraft.entity.ai.goal.LookAtEntityGoal

Field summary

Modifier and TypeField
public static final float
DEFAULT_PROBABILITY
field_33760
DEFAULT_CHANCE
protected final MobEntity
mob
field_6486
mob
protected Entity
lookAt
field_6484
target
protected final float
lookDistance
field_6482
range
private int
lookTime
field_6483
lookTime
protected final float
probability
field_6481
chance
private final boolean
onlyHorizontal
field_33761
lookForward
protected final Class<? extends LivingEntity>
lookAtType
field_6485
targetType
protected final TargetPredicate
lookAtContext
field_18087
targetPredicate

Constructor summary

ModifierConstructor
public (MobEntity mob, Class<? extends LivingEntity> targetType, float range)
public (MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance)
public (MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance, boolean lookForward)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
public void
tick()
method_6268()
tick()
private static boolean
lambda$canUse$0(LivingEntity arg0)
method_31502(class_1309 arg0)
method_31502(LivingEntity arg0)
private static boolean
lambda$new$0(Predicate arg0, LivingEntity arg1, ServerLevel arg2)
method_18414(Predicate arg0, class_1309 arg1, class_3218 arg2)
method_18414(Predicate arg0, LivingEntity entity, ServerWorld world)