Package net.minecraft.entity.ai.goal
Class DefendVillageTargetGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.TargetGoal
-
- net.minecraft.entity.ai.goal.DefendVillageTargetGoal
-
public class DefendVillageTargetGoal extends TargetGoal
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate
attackTargeting
private IronGolemEntity
golem
private LivingEntity
potentialTarget
-
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
-
Constructor Summary
Constructors Constructor Description DefendVillageTargetGoal(IronGolemEntity p_i1659_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
void
start()
-
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
-
-
-
Field Detail
-
golem
private final IronGolemEntity golem
-
potentialTarget
private LivingEntity potentialTarget
-
attackTargeting
private final EntityPredicate attackTargeting
-
-
Constructor Detail
-
DefendVillageTargetGoal
public DefendVillageTargetGoal(IronGolemEntity p_i1659_1_)
-
-
Method Detail
-
start
public void start()
- Overrides:
start
in classTargetGoal
-
-