Package net.minecraft.entity.passive
Class PandaEntity.RevengeGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.TargetGoal
-
- net.minecraft.entity.ai.goal.HurtByTargetGoal
-
- net.minecraft.entity.passive.PandaEntity.RevengeGoal
-
- Enclosing class:
- PandaEntity
static class PandaEntity.RevengeGoal extends HurtByTargetGoal
-
-
Field Summary
Fields Modifier and Type Field Description private PandaEntity
panda
-
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
-
Constructor Summary
Constructors Constructor Description RevengeGoal(PandaEntity p_i51462_1_, java.lang.Class<?>... p_i51462_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
alertOther(MobEntity p_220793_1_, LivingEntity p_220793_2_)
boolean
canContinueToUse()
-
Methods inherited from class net.minecraft.entity.ai.goal.HurtByTargetGoal
alertOthers, canUse, setAlertOthers, start
-
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, getFollowDistance, setUnseenMemoryTicks, stop
-
-
-
-
Field Detail
-
panda
private final PandaEntity panda
-
-
Constructor Detail
-
RevengeGoal
public RevengeGoal(PandaEntity p_i51462_1_, java.lang.Class<?>... p_i51462_2_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classTargetGoal
-
alertOther
protected void alertOther(MobEntity p_220793_1_, LivingEntity p_220793_2_)
- Overrides:
alertOther
in classHurtByTargetGoal
-
-