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.Fox.FoxMeleeAttackGoal
- Enclosing class:
Fox
-
Nested Class Summary
-
Field Summary
Fields inherited from class MeleeAttackGoal
mob -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse()protected voidcheckAndPerformAttack(LivingEntity target) voidstart()Methods inherited from class MeleeAttackGoal
canContinueToUse, canPerformAttack, getAttackInterval, getTicksUntilNextAttack, isTimeToAttack, requiresUpdateEveryTick, resetAttackCooldown, stop, tickMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, setFlags, toString
-
Constructor Details
-
FoxMeleeAttackGoal
public FoxMeleeAttackGoal(double speedModifier, boolean trackTarget)
-
-
Method Details
-
checkAndPerformAttack
- Overrides:
checkAndPerformAttackin classMeleeAttackGoal
-
start
public void start()- Overrides:
startin classMeleeAttackGoal
-
canUse
public boolean canUse()- Overrides:
canUsein classMeleeAttackGoal
-