Class FindPointOfInterestTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.FindPointOfInterestTask

public class FindPointOfInterestTask extends Task<PathAwareEntity>
Mappings:
Namespace Name
official bdh
intermediary net/minecraft/class_4096
named net/minecraft/entity/ai/brain/task/FindPointOfInterestTask
  • Field Details

    • MAX_POSITIONS_PER_RUN

      private static final int MAX_POSITIONS_PER_RUN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbdh;d:I
      intermediary field_30099 Lnet/minecraft/class_4096;field_30099:I
      named MAX_POSITIONS_PER_RUN Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;MAX_POSITIONS_PER_RUN:I
    • POSITION_EXPIRE_INTERVAL

      private static final int POSITION_EXPIRE_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbdh;e:I
      intermediary field_30100 Lnet/minecraft/class_4096;field_30100:I
      named POSITION_EXPIRE_INTERVAL Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;POSITION_EXPIRE_INTERVAL:I
    • POI_SORTING_RADIUS

      public static final int POI_SORTING_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdh;a:I
      intermediary field_30098 Lnet/minecraft/class_4096;field_30098:I
      named POI_SORTING_RADIUS Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;POI_SORTING_RADIUS:I
    • poiTypePredicate

      private final Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate
      Mappings:
      Namespace Name Mixin selector
      official f Lbdh;f:Ljava/util/function/Predicate;
      intermediary field_19287 Lnet/minecraft/class_4096;field_19287:Ljava/util/function/Predicate;
      named poiTypePredicate Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;poiTypePredicate:Ljava/util/function/Predicate;
    • targetMemoryModuleType

      private final MemoryModuleType<GlobalPos> targetMemoryModuleType
      Mappings:
      Namespace Name Mixin selector
      official g Lbdh;g:Lbku;
      intermediary field_20287 Lnet/minecraft/class_4096;field_20287:Lnet/minecraft/class_4140;
      named targetMemoryModuleType Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;targetMemoryModuleType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • onlyRunIfChild

      private final boolean onlyRunIfChild
      Mappings:
      Namespace Name Mixin selector
      official h Lbdh;h:Z
      intermediary field_18854 Lnet/minecraft/class_4096;field_18854:Z
      named onlyRunIfChild Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;onlyRunIfChild:Z
    • entityStatus

      private final Optional<Byte> entityStatus
      Mappings:
      Namespace Name Mixin selector
      official i Lbdh;i:Ljava/util/Optional;
      intermediary field_25812 Lnet/minecraft/class_4096;field_25812:Ljava/util/Optional;
      named entityStatus Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;entityStatus:Ljava/util/Optional;
    • positionExpireTimeLimit

      private long positionExpireTimeLimit
      Mappings:
      Namespace Name Mixin selector
      official j Lbdh;j:J
      intermediary field_18332 Lnet/minecraft/class_4096;field_18332:J
      named positionExpireTimeLimit Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;positionExpireTimeLimit:J
    • foundPositionsToExpiry

      private final Long2ObjectMap<FindPointOfInterestTask.RetryMarker> foundPositionsToExpiry
      Mappings:
      Namespace Name Mixin selector
      official k Lbdh;k:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      intermediary field_19289 Lnet/minecraft/class_4096;field_19289:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
      named foundPositionsToExpiry Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;foundPositionsToExpiry:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
  • Constructor Details

    • FindPointOfInterestTask

      public FindPointOfInterestTask(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> moduleType, MemoryModuleType<GlobalPos> targetMemoryModuleType, boolean onlyRunIfChild, Optional<Byte> entityStatus)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdh;<init>(Ljava/util/function/Predicate;Lbku;Lbku;ZLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4096;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;ZLjava/util/Optional;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;ZLjava/util/Optional;)V
    • FindPointOfInterestTask

      public FindPointOfInterestTask(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> moduleType, boolean onlyRunIfChild, Optional<Byte> entityStatus)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdh;<init>(Ljava/util/function/Predicate;Lbku;ZLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4096;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;ZLjava/util/Optional;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;ZLjava/util/Optional;)V
  • Method Details

    • create

      private static ImmutableMap<MemoryModuleType<?>,MemoryModuleState> create(MemoryModuleType<GlobalPos> firstModule, MemoryModuleType<GlobalPos> secondModule)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdh;a(Lbku;Lbku;)Lcom/google/common/collect/ImmutableMap;
      intermediary method_29245 Lnet/minecraft/class_4096;method_29245(Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;)Lcom/google/common/collect/ImmutableMap;
      named create Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;create(Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)Lcom/google/common/collect/ImmutableMap;
    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbdh;a(Lagg;Lbcl;)Z
      intermediary method_20816 Lnet/minecraft/class_4096;method_20816(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • run

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbdh;a(Lagg;Lbcl;J)V
      intermediary method_20817 Lnet/minecraft/class_4096;method_20817(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
    • findPathToPoi

      @Nullable public static @Nullable Path findPathToPoi(MobEntity entity, Set<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>,BlockPos>> pois)
      Mappings:
      Namespace Name Mixin selector
      official a Lbdh;a(Lbce;Ljava/util/Set;)Ldql;
      intermediary method_43965 Lnet/minecraft/class_4096;method_43965(Lnet/minecraft/class_1308;Ljava/util/Set;)Lnet/minecraft/class_11;
      named findPathToPoi Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;findPathToPoi(Lnet/minecraft/entity/mob/MobEntity;Ljava/util/Set;)Lnet/minecraft/entity/ai/pathing/Path;