public class LookAtEntityTask extends Task<LivingEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<LivingEntity> |
field_220519_a |
private float |
field_220520_b |
Constructor and Description |
---|
LookAtEntityTask(EntityClassification p_i50350_1_,
float p_i50350_2_) |
LookAtEntityTask(EntityType<?> p_i50351_1_,
float p_i50351_2_) |
LookAtEntityTask(java.util.function.Predicate<LivingEntity> p_i50352_1_,
float p_i50352_2_) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
shouldExecute(ServerWorld worldIn,
LivingEntity owner) |
protected void |
startExecuting(ServerWorld worldIn,
LivingEntity entityIn,
long gameTimeIn) |
getStatus, isTimedOut, resetTask, shouldContinueExecuting, start, stop, tick, toString, updateTask
private final java.util.function.Predicate<LivingEntity> field_220519_a
private final float field_220520_b
public LookAtEntityTask(EntityClassification p_i50350_1_, float p_i50350_2_)
public LookAtEntityTask(EntityType<?> p_i50351_1_, float p_i50351_2_)
public LookAtEntityTask(java.util.function.Predicate<LivingEntity> p_i50352_1_, float p_i50352_2_)
protected boolean shouldExecute(ServerWorld worldIn, LivingEntity owner)
shouldExecute
in class Task<LivingEntity>
protected void startExecuting(ServerWorld worldIn, LivingEntity entityIn, long gameTimeIn)
startExecuting
in class Task<LivingEntity>