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.AttackGoal
public class ZombieAttackGoal extends MeleeAttackGoal
-
-
Field Summary
Fields Modifier and Type Field Description private int
raiseArmTicks
private ZombieEntity
zombie
-
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
-
Constructor Summary
Constructors Constructor Description ZombieAttackGoal(ZombieEntity p_i46803_1_, double p_i46803_2_, boolean p_i46803_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start()
void
stop()
void
tick()
-
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
canContinueToUse, canUse, checkAndPerformAttack, getAttackInterval, getAttackReachSqr, getTicksUntilNextAttack, isTimeToAttack, resetAttackCooldown
-
Methods inherited from class net.minecraft.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
-
-
-
Field Detail
-
zombie
private final ZombieEntity zombie
-
raiseArmTicks
private int raiseArmTicks
-
-
Constructor Detail
-
ZombieAttackGoal
public ZombieAttackGoal(ZombieEntity p_i46803_1_, double p_i46803_2_, boolean p_i46803_4_)
-
-
Method Detail
-
start
public void start()
- Overrides:
start
in classMeleeAttackGoal
-
stop
public void stop()
- Overrides:
stop
in classMeleeAttackGoal
-
tick
public void tick()
- Overrides:
tick
in classMeleeAttackGoal
-
-