public class LookAtEntityGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
protected float |
chance |
private int |
lookTime |
protected MobEntity |
mob |
protected float |
range |
protected Entity |
target |
protected TargetPredicate |
targetPredicate |
protected Class<? extends LivingEntity> |
targetType |
Constructor and Description |
---|
LookAtEntityGoal(MobEntity mob,
Class<? extends LivingEntity> targetType,
float range) |
LookAtEntityGoal(MobEntity mob,
Class<? extends LivingEntity> targetType,
float range,
float chance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
canStop, getControls, setControls, toString
protected final MobEntity mob
protected Entity target
protected final float range
private int lookTime
protected final float chance
protected final Class<? extends LivingEntity> targetType
protected final TargetPredicate targetPredicate
public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range)
public LookAtEntityGoal(MobEntity mob, Class<? extends LivingEntity> targetType, float range, float chance)
public boolean shouldContinue()
shouldContinue
in class Goal