Class FindPointOfInterestTask

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

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

    • POI_SORTING_RADIUS

      public static final int POI_SORTING_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named POI_SORTING_RADIUS Lnet/minecraft/entity/ai/brain/task/FindPointOfInterestTask;POI_SORTING_RADIUS:I
      intermediary field_30098 Lnet/minecraft/class_4096;field_30098:I
      official a Lbxr;a: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
      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;
      intermediary method_46884 Lnet/minecraft/class_4096;method_46884(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;ZLjava/util/Optional;)Lnet/minecraft/class_7893;
      official a Lbxr;a(Ljava/util/function/Predicate;Lcfj;ZLjava/util/Optional;)Lbxz;
    • 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
      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;
      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;
      official a Lbxr;a(Ljava/util/function/Predicate;Lcfj;Lcfj;ZLjava/util/Optional;)Lbxz;
    • findPathToPoi

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