Package net.minecraft.entity.monster
Class EndermanEntity.FindPlayerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
net.minecraft.entity.ai.goal.NearestAttackableTargetGoal<PlayerEntity>
net.minecraft.entity.monster.EndermanEntity.FindPlayerGoal
- Enclosing class:
- EndermanEntity
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final EntityPredicate
private final EndermanEntity
private PlayerEntity
private final EntityPredicate
private int
Fields inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
ConstructorDescriptionFindPlayerGoal
(EndermanEntity p_i241912_1_, Predicate<LivingEntity> p_i241912_2_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, getFollowDistance, setUnseenMemoryTicks
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
enderman
-
pendingTarget
-
aggroTime
private int aggroTime -
teleportTime
private int teleportTime -
startAggroTargetConditions
-
continueAggroTargetConditions
-
-
Constructor Details
-
FindPlayerGoal
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<PlayerEntity>
-
start
public void start()- Overrides:
start
in classNearestAttackableTargetGoal<PlayerEntity>
-
stop
public void stop()- Overrides:
stop
in classTargetGoal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classTargetGoal
-
tick
public void tick()
-