Class FollowMobTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.FollowMobTask
- Mappings:
Namespace Name official bes
intermediary net/minecraft/class_4119
named net/minecraft/entity/ai/brain/task/FollowMobTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final Predicate<LivingEntity>
private Optional<LivingEntity>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionFollowMobTask
(float maxDistance) FollowMobTask
(Predicate<LivingEntity> predicate, float maxDistance) FollowMobTask
(EntityType<?> entityType, float maxDistance) FollowMobTask
(SpawnGroup group, float maxDistance) FollowMobTask
(TagKey<EntityType<?>> entityType, float maxDistance) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
run
(ServerWorld world, LivingEntity entity, long time) protected boolean
shouldRun
(ServerWorld world, LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
predicate
- Mappings:
Namespace Name Mixin selector official a
Lbes;a:Ljava/util/function/Predicate;
intermediary field_18376
Lnet/minecraft/class_4119;field_18376:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;predicate:Ljava/util/function/Predicate;
-
maxDistanceSquared
private final float maxDistanceSquared- Mappings:
Namespace Name Mixin selector official d
Lbes;d:F
intermediary field_18377
Lnet/minecraft/class_4119;field_18377:F
named maxDistanceSquared
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;maxDistanceSquared:F
-
target
- Mappings:
Namespace Name Mixin selector official e
Lbes;e:Ljava/util/Optional;
intermediary field_35102
Lnet/minecraft/class_4119;field_35102:Ljava/util/Optional;
named target
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;target:Ljava/util/Optional;
-
-
Constructor Details
-
FollowMobTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbes;<init>(Lakh;F)V
intermediary <init>
Lnet/minecraft/class_4119;<init>(Lnet/minecraft/class_6862;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;<init>(Lnet/minecraft/tag/TagKey;F)V
-
FollowMobTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbes;<init>(Lbbi;F)V
intermediary <init>
Lnet/minecraft/class_4119;<init>(Lnet/minecraft/class_1311;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;<init>(Lnet/minecraft/entity/SpawnGroup;F)V
-
FollowMobTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbes;<init>(Lbau;F)V
intermediary <init>
Lnet/minecraft/class_4119;<init>(Lnet/minecraft/class_1299;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;<init>(Lnet/minecraft/entity/EntityType;F)V
-
FollowMobTask
public FollowMobTask(float maxDistance) - Mappings:
Namespace Name Mixin selector official <init>
Lbes;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4119;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;<init>(F)V
-
FollowMobTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbes;<init>(Ljava/util/function/Predicate;F)V
intermediary <init>
Lnet/minecraft/class_4119;<init>(Ljava/util/function/Predicate;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FollowMobTask;<init>(Ljava/util/function/Predicate;F)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbcr;a(Lafo;Lbbf;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbcr;a(Lafo;Lbbf;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-