Class FollowMobTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.FollowMobTask

public class FollowMobTask extends Task<LivingEntity>
Mappings:
Namespace Name
official baj
intermediary net/minecraft/class_4119
named net/minecraft/entity/ai/brain/task/FollowMobTask
  • Field Details

    • predicate

      private final Predicate<LivingEntity> predicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbaj;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 c Lbaj;c:F
      intermediary field_18377 Lnet/minecraft/class_4119;field_18377:F
      named maxDistanceSquared Lnet/minecraft/entity/ai/brain/task/FollowMobTask;maxDistanceSquared:F
    • field_35102

      private Optional<LivingEntity> field_35102
      Mappings:
      Namespace Name Mixin selector
      official d Lbaj;d:Ljava/util/Optional;
      intermediary field_35102 Lnet/minecraft/class_4119;field_35102:Ljava/util/Optional;
      named field_35102 Lnet/minecraft/entity/ai/brain/task/FollowMobTask;field_35102:Ljava/util/Optional;
  • Constructor Details

    • FollowMobTask

      public FollowMobTask(Tag<EntityType<?>> entityType, float maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaj;<init>(Lahl;F)V
      intermediary <init> Lnet/minecraft/class_4119;<init>(Lnet/minecraft/class_3494;F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/FollowMobTask;<init>(Lnet/minecraft/tag/Tag;F)V
    • FollowMobTask

      public FollowMobTask(SpawnGroup group, float maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaj;<init>(Laxd;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

      public FollowMobTask(EntityType<?> entityType, float maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaj;<init>(Lawq;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> Lbaj;<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

      public FollowMobTask(Predicate<LivingEntity> predicate, float maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbaj;<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

      protected boolean shouldRun(ServerWorld world, LivingEntity entity)
      Overrides:
      shouldRun in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laym;a(Ladc;Laxa;)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

      protected void run(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      run in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laym;a(Ladc;Laxa;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