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 auz
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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lauz;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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lauz;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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lauz;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 Lauz;e:Lbdp;
      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 Lauz;f:Lbbt;
      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 Lauz;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 Lauz;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 Lauz;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 Lauz;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> Lauz;<init>(Lbdp;Lbbt;Lbbt;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> Lauz;<init>(Lbdp;Lbbt;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 Lauz;a(Lbbt;Lbbt;)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 Lauz;a(Labr;Lauc;)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 Lauz;a(Labr;Lauc;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