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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAndPerformAttack(LivingEntity p_190102_1_, double p_190102_2_) protected doublegetAttackReachSqr(LivingEntity p_179512_1_) voidstop()Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
canContinueToUse, canUse, getAttackInterval, getTicksUntilNextAttack, isTimeToAttack, resetAttackCooldown, start, tickMethods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Constructor Details
-
MeleeAttackGoal
public MeleeAttackGoal()
-
-
Method Details
-
checkAndPerformAttack
- Overrides:
checkAndPerformAttackin classMeleeAttackGoal
-
stop
public void stop()- Overrides:
stopin classMeleeAttackGoal
-
getAttackReachSqr
- Overrides:
getAttackReachSqrin classMeleeAttackGoal
-