net.minecraft.entity.ai.goal

public class LookAtEntityGoal

extends Goal

net.minecraft.world.entity.ai.goal.LookAtPlayerGoal
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
DEFAULT_PROBABILITY
field_33760
DEFAULT_CHANCE
protected final MobEntity
mob
mob
field_6486
mob
protected Entity
lookAt
lookAt
field_6484
target
protected final float
lookDistance
lookDistance
field_6482
range
private int
lookTime
lookTime
field_6483
lookTime
protected final float
probability
probability
field_6481
chance
private final boolean
onlyHorizontal
onlyHorizontal
field_33761
lookForward
protected final Class<? extends LivingEntity>
lookAtType
lookAtType
field_6485
targetType
protected final TargetPredicate
lookAtContext
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()
canUse()
method_6264()
canStart()
public boolean
canContinueToUse()
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
start()
method_6269()
start()
public void
stop()
stop()
method_6270()
stop()
public void
tick()
tick()
method_6268()
tick()