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:
- ActiveTargetGoal,- AttackWithOwnerGoal,- RevengeGoal,- TrackIronGolemTargetGoal,- TrackOwnerAttackerGoal,- TraderLlamaEntity.DefendTraderGoal,- VexEntity.TrackOwnerTargetGoal
A goal that maintains the target of a mob entity. If the goal stops,
 such as because the target is not valid, the target is removed from
 the owner mob.
 
Compared to other goals, this goal and its subclasses are added
 to the target than the regular
 goal selector, and should use the Goal.Control.TARGET
 control if it sets the owner's target.
- Mappings:
- Namespace - Name - official - bov- intermediary - net/minecraft/class_1405- named - net/minecraft/entity/ai/goal/TrackTargetGoal
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.entity.ai.goal.GoalGoal.Control
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate intprivate static final intprivate final booleanprivate intprotected final booleanprotected intprotected final MobEntityprotected @Nullable LivingEntityprivate intprivate static final int
- 
Constructor SummaryConstructorsConstructorDescriptionTrackTargetGoal(MobEntity mob, boolean checkVisibility) TrackTargetGoal(MobEntity mob, boolean checkVisibility, boolean checkNavigable) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleancanNavigateToEntity(LivingEntity entity) protected booleancanTrack(@Nullable LivingEntity target, TargetPredicate targetPredicate) protected doublesetMaxTimeWithoutVisibility(int time) booleanvoidstart()voidstop()Methods inherited from class net.minecraft.entity.ai.goal.GoalcanStart, canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
- 
Field Details- 
UNSETprivate static final int UNSET- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbov;a:I- intermediary - field_30233- Lnet/minecraft/class_1405;field_30233:I- named - UNSET- Lnet/minecraft/entity/ai/goal/TrackTargetGoal;UNSET:I
 
- 
CAN_TRACKprivate static final int CAN_TRACK- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbov;b:I- intermediary - field_30234- Lnet/minecraft/class_1405;field_30234:I- named - CAN_TRACK- Lnet/minecraft/entity/ai/goal/TrackTargetGoal;CAN_TRACK:I
 
- 
CANNOT_TRACKprivate static final int CANNOT_TRACK- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbov;c:I- intermediary - field_30235- Lnet/minecraft/class_1405;field_30235:I- named - CANNOT_TRACK- Lnet/minecraft/entity/ai/goal/TrackTargetGoal;CANNOT_TRACK:I
 
- 
mob- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbov;e:Lbgb;- 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;
 
- 
checkVisibilityprotected final boolean checkVisibility- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbov;f:Z- intermediary - field_6658- Lnet/minecraft/class_1405;field_6658:Z- named - checkVisibility- Lnet/minecraft/entity/ai/goal/TrackTargetGoal;checkVisibility:Z
 
- 
timeWithoutVisibilityprivate int timeWithoutVisibility- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbov;k: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- Lbov;g:Lbfz;- 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;
 
- 
maxTimeWithoutVisibilityprotected int maxTimeWithoutVisibility- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbov;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>- Lbov;<init>(Lbgb;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>- Lbov;<init>(Lbgb;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- 
shouldContinuepublic boolean shouldContinue()- Overrides:
- shouldContinuein class- Goal
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbmv;b()Z- intermediary - method_6266- Lnet/minecraft/class_1352;method_6266()Z- named - shouldContinue- Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
 
- 
getFollowRangeprotected double getFollowRange()- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbov;l()D- intermediary - method_6326- Lnet/minecraft/class_1405;method_6326()D- named - getFollowRange- Lnet/minecraft/entity/ai/goal/TrackTargetGoal;getFollowRange()D
 
- 
startpublic void start()
- 
stoppublic void stop()
- 
canTrackprotected boolean canTrack(@Nullable @Nullable LivingEntity target, TargetPredicate targetPredicate) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbov;a(Lbfz;Lbqm;)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 - c- Lbov;c(I)Lbov;- 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;
 
 
-