Class FindPointOfInterestTask

java.lang.Object
net.minecraft.entity.ai.brain.task.FindPointOfInterestTask

public class FindPointOfInterestTask extends Object
Mappings:
Namespace Name
official bkq
intermediary net/minecraft/class_4096
named net/minecraft/entity/ai/brain/task/FindPointOfInterestTask
  • Field Details

    • POI_SORTING_RADIUS

      public static final int POI_SORTING_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbkq;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
  • Constructor Details

    • FindPointOfInterestTask

      public FindPointOfInterestTask()
  • Method Details

    • create

      public static Task<PathAwareEntity> create(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkq;a(Ljava/util/function/Predicate;Lbsh;ZLjava/util/Optional;)Lbky;
      intermediary method_46884 Lnet/minecraft/class_4096;method_46884(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;ZLjava/util/Optional;)Lnet/minecraft/class_7893;
      named create Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;create(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;ZLjava/util/Optional;)Lnet/minecraft/entity/ai/brain/task/Task;
    • create

      public static Task<PathAwareEntity> create(Predicate<RegistryEntry<PointOfInterestType>> poiPredicate, MemoryModuleType<GlobalPos> poiPosModule, MemoryModuleType<GlobalPos> potentialPoiPosModule, boolean onlyRunIfChild, Optional<Byte> entityStatus)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkq;a(Ljava/util/function/Predicate;Lbsh;Lbsh;ZLjava/util/Optional;)Lbky;
      intermediary method_46883 Lnet/minecraft/class_4096;method_46883(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;Lnet/minecraft/class_4140;ZLjava/util/Optional;)Lnet/minecraft/class_7893;
      named create Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;create(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;ZLjava/util/Optional;)Lnet/minecraft/entity/ai/brain/task/Task;
    • 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 Lbkq;a(Lbji;Ljava/util/Set;)Lebb;
      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;