Class EnderMan.EndermanLookForPlayerGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<Player>
net.minecraft.world.entity.monster.EnderMan.EndermanLookForPlayerGoal
- Enclosing class:
EnderMan
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final TargetingConditionsprivate final EnderManprivate final TargetingConditions.Selectorprivate final TargetingConditionsprivate intFields inherited from class NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetTypeFields inherited from class TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionEndermanLookForPlayerGoal(EnderMan enderman, @Nullable TargetingConditions.Selector isAngryAt) -
Method Summary
Methods inherited from class NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTargetMethods inherited from class TargetGoal
canAttack, getFollowDistance, setUnseenMemoryTicksMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
-
Field Details
-
enderman
-
pendingTarget
-
aggroTime
private int aggroTime -
teleportTime
private int teleportTime -
startAggroTargetConditions
-
continueAggroTargetConditions
-
isAngerInducing
-
-
Constructor Details
-
EndermanLookForPlayerGoal
public EndermanLookForPlayerGoal(EnderMan enderman, @Nullable TargetingConditions.Selector isAngryAt)
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUsein classNearestAttackableTargetGoal<Player>
-
start
public void start()- Overrides:
startin classNearestAttackableTargetGoal<Player>
-
stop
public void stop()- Overrides:
stopin classTargetGoal
-
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUsein classTargetGoal
-
tick
-