Class MoveToTargetPosGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
Direct Known Subclasses:
CatSitOnBlockGoal, class_2631, HarvestCropsGoal

public abstract class MoveToTargetPosGoal extends Goal
Mappings:
Namespace Name
official zn
intermediary net/minecraft/class_2615
named net/minecraft/entity/ai/goal/MoveToTargetPosGoal
  • Field Details

    • mob

      private final PathAwareEntity mob
      Mappings:
      Namespace Name Mixin selector
      official c Lzn;c:Lxu;
      intermediary field_11939 Lnet/minecraft/class_2615;field_11939:Lnet/minecraft/class_877;
      named mob Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;mob:Lnet/minecraft/entity/PathAwareEntity;
    • speed

      private final double speed
      Mappings:
      Namespace Name Mixin selector
      official d Lzn;d:D
      intermediary field_11940 Lnet/minecraft/class_2615;field_11940:D
      named speed Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;speed:D
    • cooldown

      protected int cooldown
      Mappings:
      Namespace Name Mixin selector
      official a Lzn;a:I
      intermediary field_11937 Lnet/minecraft/class_2615;field_11937:I
      named cooldown Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;cooldown:I
    • tryingTime

      private int tryingTime
      Mappings:
      Namespace Name Mixin selector
      official e Lzn;e:I
      intermediary field_11941 Lnet/minecraft/class_2615;field_11941:I
      named tryingTime Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;tryingTime:I
    • safeWaitingTime

      private int safeWaitingTime
      Mappings:
      Namespace Name Mixin selector
      official f Lzn;f:I
      intermediary field_11942 Lnet/minecraft/class_2615;field_11942:I
      named safeWaitingTime Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;safeWaitingTime:I
    • targetPos

      protected BlockPos targetPos
      Mappings:
      Namespace Name Mixin selector
      official b Lzn;b:Ldt;
      intermediary field_11938 Lnet/minecraft/class_2615;field_11938:Lnet/minecraft/class_2552;
      named targetPos Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;targetPos:Lnet/minecraft/util/math/BlockPos;
    • reached

      private boolean reached
      Mappings:
      Namespace Name Mixin selector
      official g Lzn;g:Z
      intermediary field_11943 Lnet/minecraft/class_2615;field_11943:Z
      named reached Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;reached:Z
    • range

      private int range
      Mappings:
      Namespace Name Mixin selector
      official h Lzn;h:I
      intermediary field_11944 Lnet/minecraft/class_2615;field_11944:I
      named range Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;range:I
  • Constructor Details

    • MoveToTargetPosGoal

      public MoveToTargetPosGoal(PathAwareEntity mob, double speed, int range)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lzn;<init>(Lxu;DI)V
      intermediary <init> Lnet/minecraft/class_2615;<init>(Lnet/minecraft/class_877;DI)V
      named <init> Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;<init>(Lnet/minecraft/entity/PathAwareEntity;DI)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lzb;a()Z
      intermediary method_2742 Lnet/minecraft/class_896;method_2742()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lzb;b()Z
      intermediary method_2744 Lnet/minecraft/class_896;method_2744()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lzb;c()V
      intermediary method_2747 Lnet/minecraft/class_896;method_2747()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lzb;d()V
      intermediary method_2745 Lnet/minecraft/class_896;method_2745()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lzb;e()V
      intermediary method_2746 Lnet/minecraft/class_896;method_2746()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
    • hasReached

      protected boolean hasReached()
      Mappings:
      Namespace Name Mixin selector
      official f Lzn;f()Z
      intermediary method_11013 Lnet/minecraft/class_2615;method_11013()Z
      named hasReached Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;hasReached()Z
    • findTargetPos

      private boolean findTargetPos()
      Mappings:
      Namespace Name Mixin selector
      official g Lzn;g()Z
      intermediary method_11014 Lnet/minecraft/class_2615;method_11014()Z
      named findTargetPos Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;findTargetPos()Z
    • isTargetPos

      protected abstract boolean isTargetPos(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lzn;a(Laqu;Ldt;)Z
      intermediary method_11012 Lnet/minecraft/class_2615;method_11012(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named isTargetPos Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;isTargetPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z