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 asn
intermediary net/minecraft/class_4096
named net/minecraft/entity/ai/brain/task/FindPointOfInterestTask
  • Field Details

    • poiType

      private final PointOfInterestType poiType
      Mappings:
      Namespace Name Mixin selector
      official b Lasn;b:Lbbc;
      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 c Lasn;c:Lazg;
      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 d Lasn;d:Z
      intermediary field_18854 Lnet/minecraft/class_4096;field_18854:Z
      named onlyRunIfChild Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;onlyRunIfChild:Z
    • field_25812

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

      private long positionExpireTimeLimit
      Mappings:
      Namespace Name Mixin selector
      official f Lasn;f: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 g Lasn;g: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> memoryModuleType, MemoryModuleType<GlobalPos> targetMemoryModuleType, boolean onlyRunIfChild, Optional<Byte> optional)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lasn;<init>(Lbbc;Lazg;Lazg;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> memoryModuleType, boolean onlyRunIfChild, Optional<Byte> optional)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lasn;<init>(Lbbc;Lazg;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

    • method_29245

      private static ImmutableMap<MemoryModuleType<?>,​MemoryModuleState> method_29245​(MemoryModuleType<GlobalPos> memoryModuleType, MemoryModuleType<GlobalPos> memoryModuleType2)
      Mappings:
      Namespace Name Mixin selector
      official a Lasn;a(Lazg;Lazg;)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 method_29245 Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;method_29245(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 Lasn;a(Laav;Larr;)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 Lasn;a(Laav;Larr;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