Class MoveThroughVillageGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveThroughVillageGoal

public class MoveThroughVillageGoal extends Goal
Mappings:
Namespace Name
named net/minecraft/entity/ai/goal/MoveThroughVillageGoal
intermediary net/minecraft/class_1368
official cdp
  • Field Details

    • mob

      protected final PathAwareEntity mob
      Mappings:
      Namespace Name Mixin selector
      named mob Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
      intermediary field_6525 Lnet/minecraft/class_1368;field_6525:Lnet/minecraft/class_1314;
      official a Lcdp;a:Lbwn;
    • speed

      private final double speed
      Mappings:
      Namespace Name Mixin selector
      named speed Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;speed:D
      intermediary field_6520 Lnet/minecraft/class_1368;field_6520:D
      official b Lcdp;b:D
    • targetPath

      @Nullable private @Nullable Path targetPath
      Mappings:
      Namespace Name Mixin selector
      named targetPath Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;targetPath:Lnet/minecraft/entity/ai/pathing/Path;
      intermediary field_6523 Lnet/minecraft/class_1368;field_6523:Lnet/minecraft/class_11;
      official c Lcdp;c:Leuk;
    • target

      private BlockPos target
      Mappings:
      Namespace Name Mixin selector
      named target Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;target:Lnet/minecraft/util/math/BlockPos;
      intermediary field_18412 Lnet/minecraft/class_1368;field_18412:Lnet/minecraft/class_2338;
      official d Lcdp;d:Ljh;
    • requiresNighttime

      private final boolean requiresNighttime
      Mappings:
      Namespace Name Mixin selector
      named requiresNighttime Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;requiresNighttime:Z
      intermediary field_6524 Lnet/minecraft/class_1368;field_6524:Z
      official e Lcdp;e:Z
    • visitedTargets

      private final List<BlockPos> visitedTargets
      Mappings:
      Namespace Name Mixin selector
      named visitedTargets Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;visitedTargets:Ljava/util/List;
      intermediary field_18413 Lnet/minecraft/class_1368;field_18413:Ljava/util/List;
      official f Lcdp;f:Ljava/util/List;
    • distance

      private final int distance
      Mappings:
      Namespace Name Mixin selector
      named distance Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;distance:I
      intermediary field_18414 Lnet/minecraft/class_1368;field_18414:I
      official g Lcdp;g:I
    • doorPassingThroughGetter

      private final BooleanSupplier doorPassingThroughGetter
      Mappings:
      Namespace Name Mixin selector
      named doorPassingThroughGetter Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;doorPassingThroughGetter:Ljava/util/function/BooleanSupplier;
      intermediary field_18415 Lnet/minecraft/class_1368;field_18415:Ljava/util/function/BooleanSupplier;
      official h Lcdp;h:Ljava/util/function/BooleanSupplier;
  • Constructor Details

    • MoveThroughVillageGoal

      public MoveThroughVillageGoal(PathAwareEntity entity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DZILjava/util/function/BooleanSupplier;)V
      intermediary <init> Lnet/minecraft/class_1368;<init>(Lnet/minecraft/class_1314;DZILjava/util/function/BooleanSupplier;)V
      official <init> Lcdp;<init>(Lbwn;DZILjava/util/function/BooleanSupplier;)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      official b Lcdd;b()Z
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      official c Lcdd;c()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      official d Lcdd;d()V
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      official e Lcdd;e()V
    • shouldVisit

      private boolean shouldVisit(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named shouldVisit Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;shouldVisit(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_19052 Lnet/minecraft/class_1368;method_19052(Lnet/minecraft/class_2338;)Z
      official a Lcdp;a(Ljh;)Z
    • forgetOldTarget

      private void forgetOldTarget()
      Mappings:
      Namespace Name Mixin selector
      named forgetOldTarget Lnet/minecraft/entity/ai/goal/MoveThroughVillageGoal;forgetOldTarget()V
      intermediary method_6297 Lnet/minecraft/class_1368;method_6297()V
      official h Lcdp;h()V