Package net.minecraft.entity.ai.goal
Class AttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.AttackGoal
Goal that causes its mob to follow and attack its selected target.
- Mappings:
Namespace Name intermediary net/minecraft/class_1371official bnjnamed net/minecraft/entity/ai/goal/AttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, start, toGoalTicks, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector intermediary field_6541Lnet/minecraft/class_1371;field_6541:Lnet/minecraft/class_1308;official aLbnj;a:Lbfz;named mobLnet/minecraft/entity/ai/goal/AttackGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
target
- Mappings:
Namespace Name Mixin selector intermediary field_6539Lnet/minecraft/class_1371;field_6539:Lnet/minecraft/class_1309;official bLbnj;b:Lbfx;named targetLnet/minecraft/entity/ai/goal/AttackGoal;target:Lnet/minecraft/entity/LivingEntity;
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector intermediary field_6540Lnet/minecraft/class_1371;field_6540:Iofficial cLbnj;c:Inamed cooldownLnet/minecraft/entity/ai/goal/AttackGoal;cooldown:I
-
-
Constructor Details
-
AttackGoal
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_1371;<init>(Lnet/minecraft/class_1308;)Vofficial <init>Lbnj;<init>(Lbfz;)Vnamed <init>Lnet/minecraft/entity/ai/goal/AttackGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinuein classGoal- Mappings:
Namespace Name Mixin selector intermediary method_6266Lnet/minecraft/class_1352;method_6266()Zofficial bLbmt;b()Znamed shouldContinueLnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
stop
public void stop() -
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 intermediary method_38846Lnet/minecraft/class_1352;method_38846()Zofficial J_Lbmt;J_()Znamed shouldRunEveryTickLnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
-
tick
public void tick()
-