Class LookAtEntityTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.LookAtEntityTask
-
public class LookAtEntityTask extends Task<LivingEntity>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
-
Field Summary
Fields Modifier and Type Field Description private float
maxDistSqr
private java.util.function.Predicate<LivingEntity>
predicate
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description LookAtEntityTask(float p_i231532_1_)
LookAtEntityTask(java.util.function.Predicate<LivingEntity> p_i50352_1_, float p_i50352_2_)
LookAtEntityTask(EntityClassification p_i50350_1_, float p_i50350_2_)
LookAtEntityTask(EntityType<?> p_i50351_1_, float p_i50351_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
protected void
start(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_)
-
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
-
-
-
Field Detail
-
predicate
private final java.util.function.Predicate<LivingEntity> predicate
-
maxDistSqr
private final float maxDistSqr
-
-
Constructor Detail
-
LookAtEntityTask
public LookAtEntityTask(EntityClassification p_i50350_1_, float p_i50350_2_)
-
LookAtEntityTask
public LookAtEntityTask(EntityType<?> p_i50351_1_, float p_i50351_2_)
-
LookAtEntityTask
public LookAtEntityTask(float p_i231532_1_)
-
LookAtEntityTask
public LookAtEntityTask(java.util.function.Predicate<LivingEntity> p_i50352_1_, float p_i50352_2_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
protected void start(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<LivingEntity>
-
-