Package net.minecraft.entity.passive
Class PolarBearEntity.MeleeAttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.entity.passive.PolarBearEntity.MeleeAttackGoal
- Enclosing class:
- PolarBearEntity
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAndPerformAttack
(LivingEntity p_190102_1_, double p_190102_2_) protected double
getAttackReachSqr
(LivingEntity p_179512_1_) void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
canContinueToUse, canUse, getAttackInterval, getTicksUntilNextAttack, isTimeToAttack, resetAttackCooldown, start, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Constructor Details
-
MeleeAttackGoal
public MeleeAttackGoal()
-
-
Method Details
-
checkAndPerformAttack
- Overrides:
checkAndPerformAttack
in classMeleeAttackGoal
-
stop
public void stop()- Overrides:
stop
in classMeleeAttackGoal
-
getAttackReachSqr
- Overrides:
getAttackReachSqr
in classMeleeAttackGoal
-