public class LookAtGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
protected Entity |
closestEntity |
protected MobEntity |
entity |
protected EntityPredicate |
field_220716_e |
protected float |
maxDistance |
protected java.lang.Class<? extends LivingEntity> |
watchedClass |
| Constructor and Description |
|---|
LookAtGoal(MobEntity entityIn,
java.lang.Class<? extends LivingEntity> watchTargetClass,
float maxDistance) |
LookAtGoal(MobEntity entityIn,
java.lang.Class<? extends LivingEntity> watchTargetClass,
float maxDistance,
float chanceIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlagsprotected final MobEntity entity
protected Entity closestEntity
protected final float maxDistance
protected final java.lang.Class<? extends LivingEntity> watchedClass
protected final EntityPredicate field_220716_e
public LookAtGoal(MobEntity entityIn, java.lang.Class<? extends LivingEntity> watchTargetClass, float maxDistance)
public LookAtGoal(MobEntity entityIn, java.lang.Class<? extends LivingEntity> watchTargetClass, float maxDistance, float chanceIn)
public boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goal