public class LookAtGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected float |
chance |
protected Entity |
closestEntity |
protected MobEntity |
entity |
protected EntityPredicate |
field_220716_e |
private int |
lookTime |
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, setMutexFlags, toString
protected final MobEntity entity
protected Entity closestEntity
protected final float maxDistance
private int lookTime
protected final float chance
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 Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal