Package net.minecraft.entity.ai.goal
Class AttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.AttackGoal
public class AttackGoal extends Goal
- Mappings:
Namespace Name official axo
intermediary net/minecraft/class_1371
named 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
-
Constructor Summary
Constructors Constructor Description AttackGoal(MobEntity mob)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
boolean
shouldContinue()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, start, toString
-
Field Details
-
world
- Mappings:
Namespace Name Mixin selector official a
Laxo;a:Lbsz;
intermediary field_6538
Lnet/minecraft/class_1371;field_6538:Lnet/minecraft/class_1922;
named world
Lnet/minecraft/entity/ai/goal/AttackGoal;world:Lnet/minecraft/world/BlockView;
-
mob
- Mappings:
Namespace Name Mixin selector official b
Laxo;b:Larj;
intermediary field_6541
Lnet/minecraft/class_1371;field_6541:Lnet/minecraft/class_1308;
named mob
Lnet/minecraft/entity/ai/goal/AttackGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
target
- Mappings:
Namespace Name Mixin selector official c
Laxo;c:Lari;
intermediary field_6539
Lnet/minecraft/class_1371;field_6539:Lnet/minecraft/class_1309;
named target
Lnet/minecraft/entity/ai/goal/AttackGoal;target:Lnet/minecraft/entity/LivingEntity;
-
cooldown
private int cooldown- Mappings:
Namespace Name Mixin selector official d
Laxo;d:I
intermediary field_6540
Lnet/minecraft/class_1371;field_6540:I
named cooldown
Lnet/minecraft/entity/ai/goal/AttackGoal;cooldown:I
-
-
Constructor Details
-
AttackGoal
- Mappings:
Namespace Name Mixin selector official <init>
Laxo;<init>(Larj;)V
intermediary <init>
Lnet/minecraft/class_1371;<init>(Lnet/minecraft/class_1308;)V
named <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:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lawx;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
stop
public void stop() -
tick
public void tick()
-