Package net.minecraft.entity.passive
Class PandaEntity.WatchGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.LookAtGoal
-
- net.minecraft.entity.passive.PandaEntity.WatchGoal
-
- Enclosing class:
- PandaEntity
static class PandaEntity.WatchGoal extends LookAtGoal
-
-
Field Summary
Fields Modifier and Type Field Description private PandaEntity
panda
-
Fields inherited from class net.minecraft.entity.ai.goal.LookAtGoal
lookAt, lookAtContext, lookAtType, lookDistance, mob, probability
-
-
Constructor Summary
Constructors Constructor Description WatchGoal(PandaEntity p_i51458_1_, java.lang.Class<? extends LivingEntity> p_i51458_2_, float p_i51458_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
void
setTarget(LivingEntity p_229975_1_)
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.LookAtGoal
start, stop
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
panda
private final PandaEntity panda
-
-
Constructor Detail
-
WatchGoal
public WatchGoal(PandaEntity p_i51458_1_, java.lang.Class<? extends LivingEntity> p_i51458_2_, float p_i51458_3_)
-
-
Method Detail
-
setTarget
public void setTarget(LivingEntity p_229975_1_)
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classLookAtGoal
-
canUse
public boolean canUse()
- Overrides:
canUse
in classLookAtGoal
-
tick
public void tick()
- Overrides:
tick
in classLookAtGoal
-
-