Package net.minecraft.entity.ai.goal
Class DisableableFollowTargetGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.ActiveTargetGoal<T>
net.minecraft.entity.ai.goal.DisableableFollowTargetGoal<T>
An active target goal that can be disabled so that it cannot start.
- Mappings:
Namespace Name named net/minecraft/entity/ai/goal/DisableableFollowTargetGoal
intermediary net/minecraft/class_3760
official cex
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
ConstructorDescriptionDisableableFollowTargetGoal
(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, TargetPredicate.EntityPredicate targetPredicate) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
findClosestTarget, getSearchBox, setTargetEntity, start
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, castToServerWorld, getControls, getServerWorld, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
enabled
private boolean enabled- Mappings:
Namespace Name Mixin selector named enabled
Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;enabled:Z
intermediary field_17281
Lnet/minecraft/class_3760;field_17281:Z
official i
Lcex;i:Z
-
-
Constructor Details
-
DisableableFollowTargetGoal
public DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable TargetPredicate.EntityPredicate targetPredicate) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;<init>(Lnet/minecraft/entity/raid/RaiderEntity;Ljava/lang/Class;IZZLnet/minecraft/entity/ai/TargetPredicate$EntityPredicate;)V
intermediary <init>
Lnet/minecraft/class_3760;<init>(Lnet/minecraft/class_3763;Ljava/lang/Class;IZZLnet/minecraft/class_4051$class_10254;)V
official <init>
Lcex;<init>(Lcrk;Ljava/lang/Class;IZZLcgw$a;)V
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) - Mappings:
Namespace Name Mixin selector named setEnabled
Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;setEnabled(Z)V
intermediary method_17351
Lnet/minecraft/class_3760;method_17351(Z)V
official a
Lcex;a(Z)V
-
canStart
public boolean canStart()- Overrides:
canStart
in classActiveTargetGoal<T extends LivingEntity>
- Mappings:
Namespace Name Mixin selector named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
official b
Lcdd;b()Z
-