Class Fox.FoxMeleeAttackGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MeleeAttackGoal
net.minecraft.world.entity.animal.Fox.FoxMeleeAttackGoal
- Enclosing class:
Fox
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.goal.MeleeAttackGoal
mob
-
Constructor Summary
ConstructorsConstructorDescriptionFoxMeleeAttackGoal
(double speedModifier, boolean followingTargetEvenIfNotSeen) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canUse()
protected void
checkAndPerformAttack
(LivingEntity target) void
start()
Methods inherited from class net.minecraft.world.entity.ai.goal.MeleeAttackGoal
canContinueToUse, canPerformAttack, getAttackInterval, getTicksUntilNextAttack, isTimeToAttack, requiresUpdateEveryTick, resetAttackCooldown, stop, tick
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, setFlags, toString
-
Constructor Details
-
FoxMeleeAttackGoal
public FoxMeleeAttackGoal(double speedModifier, boolean followingTargetEvenIfNotSeen)
-
-
Method Details
-
checkAndPerformAttack
- Overrides:
checkAndPerformAttack
in classMeleeAttackGoal
-
start
public void start()- Overrides:
start
in classMeleeAttackGoal
-
canUse
public boolean canUse()- Overrides:
canUse
in classMeleeAttackGoal
-