Package net.minecraft.entity.passive
Class PolarBearEntity.AttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.entity.passive.PolarBearEntity.AttackGoal
- Enclosing class:
- PolarBearEntity
class PolarBearEntity.AttackGoal extends MeleeAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
Constructor Summary
Constructors Constructor Description AttackGoal()
-
Method Summary
Modifier and Type Method Description protected void
attack(LivingEntity target, double squaredDistance)
protected double
getSquaredMaxAttackDistance(LivingEntity entity)
void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
canStart, method_28346, method_28347, method_28348, method_28349, shouldContinue, start, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Constructor Details
-
AttackGoal
public AttackGoal()
-
-
Method Details
-
attack
- Overrides:
attack
in classMeleeAttackGoal
-
stop
public void stop()- Overrides:
stop
in classMeleeAttackGoal
-
getSquaredMaxAttackDistance
- Overrides:
getSquaredMaxAttackDistance
in classMeleeAttackGoal
-