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
static class EndermanEntity.FindPlayerGoal extends NearestAttackableTargetGoal<PlayerEntity>
-
-
Field Summary
Fields Modifier and Type Field Description private int
aggroTime
private EntityPredicate
continueAggroTargetConditions
private EndermanEntity
enderman
private PlayerEntity
pendingTarget
private EntityPredicate
startAggroTargetConditions
private int
teleportTime
-
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
Constructors Constructor Description FindPlayerGoal(EndermanEntity p_i241912_1_, java.util.function.Predicate<LivingEntity> p_i241912_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
void
start()
void
stop()
void
tick()
-
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 Detail
-
enderman
private final EndermanEntity enderman
-
pendingTarget
private PlayerEntity pendingTarget
-
aggroTime
private int aggroTime
-
teleportTime
private int teleportTime
-
startAggroTargetConditions
private final EntityPredicate startAggroTargetConditions
-
continueAggroTargetConditions
private final EntityPredicate continueAggroTargetConditions
-
-
Constructor Detail
-
FindPlayerGoal
public FindPlayerGoal(EndermanEntity p_i241912_1_, @Nullable java.util.function.Predicate<LivingEntity> p_i241912_2_)
-
-
Method Detail
-
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
-
-