Package net.minecraft.entity.ai.goal
Class TrackTargetGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
- Direct Known Subclasses:
AttackWithOwnerGoal
,FollowTargetGoal
,RevengeGoal
,TrackIronGolemTargetGoal
,TrackOwnerAttackerGoal
,TraderLlamaEntity.DefendTraderGoal
,VexEntity.TrackOwnerTargetGoal
public abstract class TrackTargetGoal extends Goal
- Mappings:
Namespace Name official ayz
intermediary net/minecraft/class_1405
named net/minecraft/entity/ai/goal/TrackTargetGoal
-
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 int
canNavigateFlag
private boolean
checkCanNavigate
private int
checkCanNavigateCooldown
protected boolean
checkVisibility
protected int
maxTimeWithoutVisibility
protected MobEntity
mob
protected LivingEntity
target
private int
timeWithoutVisibility
-
Constructor Summary
Constructors Constructor Description TrackTargetGoal(MobEntity mob, boolean checkVisibility)
TrackTargetGoal(MobEntity mob, boolean checkVisibility, boolean checkNavigable)
-
Method Summary
Modifier and Type Method Description private boolean
canNavigateToEntity(LivingEntity entity)
protected boolean
canTrack(LivingEntity target, TargetPredicate targetPredicate)
protected double
getFollowRange()
TrackTargetGoal
setMaxTimeWithoutVisibility(int time)
boolean
shouldContinue()
void
start()
void
stop()
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStart, canStop, getControls, setControls, tick, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official e
Layz;e:Larj;
intermediary field_6660
Lnet/minecraft/class_1405;field_6660:Lnet/minecraft/class_1308;
named mob
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
-
checkVisibility
protected final boolean checkVisibility- Mappings:
Namespace Name Mixin selector official f
Layz;f:Z
intermediary field_6658
Lnet/minecraft/class_1405;field_6658:Z
named checkVisibility
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;checkVisibility:Z
-
timeWithoutVisibility
private int timeWithoutVisibility- Mappings:
Namespace Name Mixin selector official d
Layz;d:I
intermediary field_6659
Lnet/minecraft/class_1405;field_6659:I
named timeWithoutVisibility
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;timeWithoutVisibility:I
-
target
- Mappings:
Namespace Name Mixin selector official g
Layz;g:Lari;
intermediary field_6664
Lnet/minecraft/class_1405;field_6664:Lnet/minecraft/class_1309;
named target
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;target:Lnet/minecraft/entity/LivingEntity;
-
maxTimeWithoutVisibility
protected int maxTimeWithoutVisibility- Mappings:
Namespace Name Mixin selector official h
Layz;h:I
intermediary field_6657
Lnet/minecraft/class_1405;field_6657:I
named maxTimeWithoutVisibility
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;maxTimeWithoutVisibility:I
-
-
Constructor Details
-
TrackTargetGoal
- Mappings:
Namespace Name Mixin selector official <init>
Layz;<init>(Larj;Z)V
intermediary <init>
Lnet/minecraft/class_1405;<init>(Lnet/minecraft/class_1308;Z)V
named <init>
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;Z)V
-
TrackTargetGoal
- Mappings:
Namespace Name Mixin selector official <init>
Layz;<init>(Larj;ZZ)V
intermediary <init>
Lnet/minecraft/class_1405;<init>(Lnet/minecraft/class_1308;ZZ)V
named <init>
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;<init>(Lnet/minecraft/entity/mob/MobEntity;ZZ)V
-
-
Method Details
-
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
-
getFollowRange
protected double getFollowRange()- Mappings:
Namespace Name Mixin selector official k
Layz;k()D
intermediary method_6326
Lnet/minecraft/class_1405;method_6326()D
named getFollowRange
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;getFollowRange()D
-
start
public void start() -
stop
public void stop() -
canTrack
- Mappings:
Namespace Name Mixin selector official a
Layz;a(Lari;Lbal;)Z
intermediary method_6328
Lnet/minecraft/class_1405;method_6328(Lnet/minecraft/class_1309;Lnet/minecraft/class_4051;)Z
named canTrack
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;canTrack(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/ai/TargetPredicate;)Z
-
setMaxTimeWithoutVisibility
- Mappings:
Namespace Name Mixin selector official a
Layz;a(I)Layz;
intermediary method_6330
Lnet/minecraft/class_1405;method_6330(I)Lnet/minecraft/class_1405;
named setMaxTimeWithoutVisibility
Lnet/minecraft/entity/ai/goal/TrackTargetGoal;setMaxTimeWithoutVisibility(I)Lnet/minecraft/entity/ai/goal/TrackTargetGoal;
-