Package net.minecraft.entity.passive
Class PolarBearEntity.AttackPlayerGoal
- 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.passive.PolarBearEntity.AttackPlayerGoal
-
- Enclosing class:
- PolarBearEntity
class PolarBearEntity.AttackPlayerGoal extends NearestAttackableTargetGoal<PlayerEntity>
-
-
Field Summary
-
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 AttackPlayerGoal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
protected double
getFollowDistance()
-
Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, start
-
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, setUnseenMemoryTicks, stop
-
-
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classNearestAttackableTargetGoal<PlayerEntity>
-
getFollowDistance
protected double getFollowDistance()
- Overrides:
getFollowDistance
in classTargetGoal
-
-