Package net.minecraft.entity.passive
Class PandaEntity.LookAtEntityGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.LookAtEntityGoal
net.minecraft.entity.passive.PandaEntity.LookAtEntityGoal
- Enclosing class:
- PandaEntity
static class PandaEntity.LookAtEntityGoal extends LookAtEntityGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private PandaEntity
panda
Fields inherited from class net.minecraft.entity.ai.goal.LookAtEntityGoal
chance, mob, range, target, targetPredicate, targetType
-
Constructor Summary
Constructors Constructor Description LookAtEntityGoal(PandaEntity panda, Class<? extends LivingEntity> targetType, float range)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
void
setTarget(LivingEntity target)
boolean
shouldContinue()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.LookAtEntityGoal
start, stop
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
panda
-
-
Constructor Details
-
LookAtEntityGoal
-
-
Method Details
-
setTarget
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classLookAtEntityGoal
-
canStart
public boolean canStart()- Overrides:
canStart
in classLookAtEntityGoal
-
tick
public void tick()- Overrides:
tick
in classLookAtEntityGoal
-