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 azd
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 c Lazd;c: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 d Lazd;d: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 Lazd;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
    • poiType

      private final PointOfInterestType poiType
      Mappings:
      Namespace Name Mixin selector
      official e Lazd;e:Lbhv;
      intermediary field_19287 Lnet/minecraft/class_4096;field_19287:Lnet/minecraft/class_4158;
      named poiType Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;poiType:Lnet/minecraft/world/poi/PointOfInterestType;
    • targetMemoryModuleType

      private final MemoryModuleType<GlobalPos> targetMemoryModuleType
      Mappings:
      Namespace Name Mixin selector
      official f Lazd;f:Lbfy;
      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 g Lazd;g: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 h Lazd;h: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 i Lazd;i: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 j Lazd;j: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(PointOfInterestType poiType, MemoryModuleType<GlobalPos> moduleType, MemoryModuleType<GlobalPos> targetMemoryModuleType, boolean onlyRunIfChild, Optional<Byte> entityStatus)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lazd;<init>(Lbhv;Lbfy;Lbfy;ZLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4096;<init>(Lnet/minecraft/class_4158;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;ZLjava/util/Optional;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;<init>(Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;ZLjava/util/Optional;)V
    • FindPointOfInterestTask

      public FindPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> moduleType, boolean onlyRunIfChild, Optional<Byte> entityStatus)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lazd;<init>(Lbhv;Lbfy;ZLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_4096;<init>(Lnet/minecraft/class_4158;Lnet/minecraft/class_4140;ZLjava/util/Optional;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;<init>(Lnet/minecraft/world/poi/PointOfInterestType;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 Lazd;a(Lbfy;Lbfy;)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 Lazd;a(Ladw;Layh;)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 Lazd;a(Ladw;Layh;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