Package net.minecraft.entity.ai.goal
Class AttackWithOwnerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.AttackWithOwnerGoal
public class AttackWithOwnerGoal extends TrackTargetGoal
- Mappings:
Namespace Name official ayx
intermediary net/minecraft/class_1406
named net/minecraft/entity/ai/goal/AttackWithOwnerGoal
-
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 LivingEntity
attacking
private int
lastAttackTime
private TameableEntity
tameable
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
Constructors Constructor Description AttackWithOwnerGoal(TameableEntity tameable)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stop
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
tameable
- Mappings:
Namespace Name Mixin selector official a
Layx;a:Lasb;
intermediary field_6666
Lnet/minecraft/class_1406;field_6666:Lnet/minecraft/class_1321;
named tameable
Lnet/minecraft/entity/ai/goal/AttackWithOwnerGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
-
attacking
- Mappings:
Namespace Name Mixin selector official b
Layx;b:Lari;
intermediary field_6667
Lnet/minecraft/class_1406;field_6667:Lnet/minecraft/class_1309;
named attacking
Lnet/minecraft/entity/ai/goal/AttackWithOwnerGoal;attacking:Lnet/minecraft/entity/LivingEntity;
-
lastAttackTime
private int lastAttackTime- Mappings:
Namespace Name Mixin selector official c
Layx;c:I
intermediary field_6665
Lnet/minecraft/class_1406;field_6665:I
named lastAttackTime
Lnet/minecraft/entity/ai/goal/AttackWithOwnerGoal;lastAttackTime:I
-
-
Constructor Details
-
AttackWithOwnerGoal
- Mappings:
Namespace Name Mixin selector official <init>
Layx;<init>(Lasb;)V
intermediary <init>
Lnet/minecraft/class_1406;<init>(Lnet/minecraft/class_1321;)V
named <init>
Lnet/minecraft/entity/ai/goal/AttackWithOwnerGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;)V
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start()- Overrides:
start
in classTrackTargetGoal
- Mappings:
Namespace Name Mixin selector official c
Lawx;c()V
intermediary method_6269
Lnet/minecraft/class_1352;method_6269()V
named start
Lnet/minecraft/entity/ai/goal/Goal;start()V
-