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
- Mappings:
Namespace Name official bdgintermediary net/minecraft/class_1396named net/minecraft/entity/ai/goal/ZombieAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob -
Constructor Summary
ConstructorsConstructorDescriptionZombieAttackGoal(ZombieEntity zombie, double speed, boolean pauseWhenMobIdle) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
attack, canStart, getCooldown, getMaxCooldown, getSquaredMaxAttackDistance, isCooledDown, resetCooldown, shouldContinueMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, toGoalTicks, toString
-
Field Details
-
zombie
- Mappings:
Namespace Name Mixin selector official bLbdg;b:Lbku;intermediary field_6628Lnet/minecraft/class_1396;field_6628:Lnet/minecraft/class_1642;named zombieLnet/minecraft/entity/ai/goal/ZombieAttackGoal;zombie:Lnet/minecraft/entity/mob/ZombieEntity;
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector official cLbdg;c:Iintermediary field_6627Lnet/minecraft/class_1396;field_6627:Inamed ticksLnet/minecraft/entity/ai/goal/ZombieAttackGoal;ticks:I
-
-
Constructor Details
-
ZombieAttackGoal
- Mappings:
Namespace Name Mixin selector official <init>Lbdg;<init>(Lbku;DZ)Vintermediary <init>Lnet/minecraft/class_1396;<init>(Lnet/minecraft/class_1642;DZ)Vnamed <init>Lnet/minecraft/entity/ai/goal/ZombieAttackGoal;<init>(Lnet/minecraft/entity/mob/ZombieEntity;DZ)V
-
-
Method Details
-
start
public void start()- Overrides:
startin classMeleeAttackGoal- Mappings:
Namespace Name Mixin selector official cLbbs;c()Vintermediary method_6269Lnet/minecraft/class_1352;method_6269()Vnamed startLnet/minecraft/entity/ai/goal/Goal;start()V
-
stop
public void stop()- Overrides:
stopin classMeleeAttackGoal- Mappings:
Namespace Name Mixin selector official dLbbs;d()Vintermediary method_6270Lnet/minecraft/class_1352;method_6270()Vnamed stopLnet/minecraft/entity/ai/goal/Goal;stop()V
-
shouldRunEveryTick
public boolean shouldRunEveryTick()Returns if the goal should run every tick or not.This returns
falseby default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.- Overrides:
shouldRunEveryTickin classGoal- Returns:
- if the goal should run every tick or not
- See Also:
- Mappings:
Namespace Name Mixin selector official fLbbs;f()Zintermediary method_38846Lnet/minecraft/class_1352;method_38846()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()- Overrides:
tickin classMeleeAttackGoal- Mappings:
Namespace Name Mixin selector official eLbbs;e()Vintermediary method_6268Lnet/minecraft/class_1352;method_6268()Vnamed tickLnet/minecraft/entity/ai/goal/Goal;tick()V
-