net.minecraft.world.entity.ai.goal

public class LookAtPlayerGoal

extends Goal

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

Field summary

Modifier and TypeField
public static final float
a
DEFAULT_PROBABILITY
field_33760
DEFAULT_CHANCE
protected final Mob
b
mob
field_6486
mob
protected Entity
c
lookAt
field_6484
target
protected final float
d
lookDistance
field_6482
range
private int
h
lookTime
field_6483
lookTime
protected final float
e
probability
field_6481
chance
private final boolean
i
onlyHorizontal
field_33761
lookForward
protected final Class<? extends LivingEntity>
f
lookAtType
field_6485
targetType
protected final TargetingConditions
g
lookAtContext
field_18087
targetPredicate

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
b()
canUse()
method_6264()
canStart()
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
public void
d()
start()
method_6269()
start()
public void
e()
stop()
method_6270()
stop()
public void
a()
tick()
method_6268()
tick()