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
class PolarBearEntity.MeleeAttackGoal extends MeleeAttackGoal
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
-
Constructor Summary
Constructors Constructor Description MeleeAttackGoal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
checkAndPerformAttack
protected void checkAndPerformAttack(LivingEntity p_190102_1_, double p_190102_2_)
- Overrides:
checkAndPerformAttack
in classMeleeAttackGoal
-
stop
public void stop()
- Overrides:
stop
in classMeleeAttackGoal
-
getAttackReachSqr
protected double getAttackReachSqr(LivingEntity p_179512_1_)
- Overrides:
getAttackReachSqr
in classMeleeAttackGoal
-
-