Class PolarBear.PolarBearAttackPlayersGoal
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.animal.polarbear.PolarBear.PolarBearAttackPlayersGoal
- Enclosing class:
PolarBear
-
Nested Class Summary
-
Field Summary
Fields inherited from class NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetTypeFields inherited from class TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, startMethods inherited from class TargetGoal
canAttack, canContinueToUse, setUnseenMemoryTicks, stopMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Constructor Details
-
PolarBearAttackPlayersGoal
public PolarBearAttackPlayersGoal()
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUsein classNearestAttackableTargetGoal<Player>
-
getFollowDistance
protected double getFollowDistance()- Overrides:
getFollowDistancein classTargetGoal
-