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