Class ForgetCompletedPointOfInterestTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.ForgetCompletedPointOfInterestTask

public class ForgetCompletedPointOfInterestTask extends Task<LivingEntity>
Mappings:
Namespace Name
official bgr
intermediary net/minecraft/class_4128
named net/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask
  • Field Details

    • MAX_RANGE

      private static final int MAX_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbgr;a:I
      intermediary field_30185 Lnet/minecraft/class_4128;field_30185:I
      named MAX_RANGE Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;MAX_RANGE:I
    • memoryModule

      private final MemoryModuleType<GlobalPos> memoryModule
      Mappings:
      Namespace Name Mixin selector
      official d Lbgr;d:Lbku;
      intermediary field_18390 Lnet/minecraft/class_4128;field_18390:Lnet/minecraft/class_4140;
      named memoryModule Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;memoryModule:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • poiTypePredicate

      private final Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate
      Mappings:
      Namespace Name Mixin selector
      official e Lbgr;e:Ljava/util/function/Predicate;
      intermediary field_18391 Lnet/minecraft/class_4128;field_18391:Ljava/util/function/Predicate;
      named poiTypePredicate Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;poiTypePredicate:Ljava/util/function/Predicate;
  • Constructor Details

    • ForgetCompletedPointOfInterestTask

      public ForgetCompletedPointOfInterestTask(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> memoryModule)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbgr;<init>(Ljava/util/function/Predicate;Lbku;)V
      intermediary <init> Lnet/minecraft/class_4128;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld world, LivingEntity entity)
      Overrides:
      shouldRun in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbdo;a(Lagg;Lbcc;)Z
      intermediary method_18919 Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • run

      protected void run(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      run in class Task<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbdo;a(Lagg;Lbcc;J)V
      intermediary method_18920 Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named run Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • isBedOccupiedByOthers

      private boolean isBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgr;a(Lagg;Lgt;Lbcc;)Z
      intermediary method_20500 Lnet/minecraft/class_4128;method_20500(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Z
      named isBedOccupiedByOthers Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;isBedOccupiedByOthers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
    • hasCompletedPointOfInterest

      private boolean hasCompletedPointOfInterest(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgr;a(Lagg;Lgt;)Z
      intermediary method_20499 Lnet/minecraft/class_4128;method_20499(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
      named hasCompletedPointOfInterest Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;hasCompletedPointOfInterest(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z