Package net.minecraft.entity.passive
Class FoxEntity.AttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.entity.passive.FoxEntity.AttackGoal
- Enclosing class:
- FoxEntity
class FoxEntity.AttackGoal extends MeleeAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
Constructor Summary
Constructors Constructor Description AttackGoal(double speed, boolean pauseWhenIdle)
-
Method Summary
Modifier and Type Method Description protected void
attack(LivingEntity target, double squaredDistance)
boolean
canStart()
void
start()
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
getSquaredMaxAttackDistance, method_28346, method_28347, method_28348, method_28349, shouldContinue, stop, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Constructor Details
-
AttackGoal
public AttackGoal(double speed, boolean pauseWhenIdle)
-
-
Method Details
-
attack
- Overrides:
attack
in classMeleeAttackGoal
-
start
public void start()- Overrides:
start
in classMeleeAttackGoal
-
canStart
public boolean canStart()- Overrides:
canStart
in classMeleeAttackGoal
-