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.FollowTargetGoal<T>
net.minecraft.entity.ai.goal.DisableableFollowTargetGoal<T>
public class DisableableFollowTargetGoal<T extends LivingEntity> extends FollowTargetGoal<T>
- Mappings:
Namespace Name official ayt
intermediary net/minecraft/class_3760
named 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
Fields Modifier and Type Field Description private boolean
enabled
Fields inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
reciprocalChance, targetClass, targetEntity, targetPredicate
Fields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target
-
Constructor Summary
Constructors Constructor Description DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, Predicate<LivingEntity> targetPredicate)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
void
setEnabled(boolean enabled)
Methods inherited from class net.minecraft.entity.ai.goal.FollowTargetGoal
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, getControls, setControls, tick, toString
-
Field Details
-
enabled
private boolean enabled- Mappings:
Namespace Name Mixin selector official i
Layt;i:Z
intermediary field_17281
Lnet/minecraft/class_3760;field_17281:Z
named enabled
Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;enabled:Z
-
-
Constructor Details
-
DisableableFollowTargetGoal
public DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable Predicate<LivingEntity> targetPredicate)- Mappings:
Namespace Name Mixin selector official <init>
Layt;<init>(Lbir;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_3760;<init>(Lnet/minecraft/class_3763;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
named <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 official a
Layt;a(Z)V
intermediary method_17351
Lnet/minecraft/class_3760;method_17351(Z)V
named setEnabled
Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;setEnabled(Z)V
-
canStart
public boolean canStart()- Overrides:
canStart
in classFollowTargetGoal<T extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lawx;a()Z
intermediary method_6264
Lnet/minecraft/class_1352;method_6264()Z
named canStart
Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
-