Package net.minecraft.entity.ai.goal
Class ZombieAttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.entity.ai.goal.ZombieAttackGoal
- Direct Known Subclasses:
DrownedEntity.DrownedAttackGoal
public class ZombieAttackGoal extends MeleeAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields Modifier and Type Field Description private int
ticks
private ZombieEntity
zombie
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
Constructor Summary
Constructors Constructor Description ZombieAttackGoal(ZombieEntity zombie, double speed, boolean pauseWhenMobIdle)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
attack, canStart, getSquaredMaxAttackDistance, method_28346, method_28347, method_28348, method_28349, shouldContinue
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
zombie
-
ticks
private int ticks
-
-
Constructor Details
-
ZombieAttackGoal
-
-
Method Details
-
start
public void start()- Overrides:
start
in classMeleeAttackGoal
-
stop
public void stop()- Overrides:
stop
in classMeleeAttackGoal
-
tick
public void tick()- Overrides:
tick
in classMeleeAttackGoal
-