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 intermediary net/minecraft/class_3760official bonnamed net/minecraft/entity/ai/goal/DisableableFollowTargetGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicateFields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target -
Constructor Summary
ConstructorsConstructorDescriptionDisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.ActiveTargetGoal
findClosestTarget, getSearchBox, setTargetEntity, startMethods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stopMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, getTickCount, setControls, shouldRunEveryTick, tick, toGoalTicks, toString
-
Field Details
-
enabled
private boolean enabled- Mappings:
Namespace Name Mixin selector intermediary field_17281Lnet/minecraft/class_3760;field_17281:Zofficial iLbon;i:Znamed enabledLnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;enabled:Z
-
-
Constructor Details
-
DisableableFollowTargetGoal
public DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable @Nullable Predicate<LivingEntity> targetPredicate) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_3760;<init>(Lnet/minecraft/class_3763;Ljava/lang/Class;IZZLjava/util/function/Predicate;)Vofficial <init>Lbon;<init>(Lbzu;Ljava/lang/Class;IZZLjava/util/function/Predicate;)Vnamed <init>Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;<init>(Lnet/minecraft/entity/raid/RaiderEntity;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) - Mappings:
Namespace Name Mixin selector intermediary method_17351Lnet/minecraft/class_3760;method_17351(Z)Vofficial aLbon;a(Z)Vnamed setEnabledLnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;setEnabled(Z)V
-
canStart
public boolean canStart()- Overrides:
canStartin classActiveTargetGoal<T extends LivingEntity>- Mappings:
Namespace Name Mixin selector intermediary method_6264Lnet/minecraft/class_1352;method_6264()Zofficial aLbmt;a()Znamed canStartLnet/minecraft/entity/ai/goal/Goal;canStart()Z
-