Class MoveToTargetPosGoal

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

public abstract class MoveToTargetPosGoal extends Goal
Mappings:
Namespace Name
official xr
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 Lxr;c:Lvx;
      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 Lxr;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 Lxr;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 Lxr;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 Lxr;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 Lxr;b:Let;
      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 Lxr;g:Z
      intermediary field_11943 Lnet/minecraft/class_2615;field_11943:Z
      named reached Lnet/minecraft/entity/ai/goal/MoveToTargetPosGoal;reached:Z
    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official h Lxr;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> Lxr;<init>(Lvx;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 Lxe;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 Lxe;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 Lxe;c()V
      intermediary method_2747 Lnet/minecraft/class_896;method_2747()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lxe;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 Lxr;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 i Lxr;i()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 Lxr;a(Lamu;Let;)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