Class FollowOwnerGoal

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

public class FollowOwnerGoal extends Goal
Mappings:
Namespace Name
named net/minecraft/entity/ai/goal/FollowOwnerGoal
intermediary net/minecraft/class_1350
official can
  • Field Details

    • TELEPORT_DISTANCE

      public static final int TELEPORT_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TELEPORT_DISTANCE Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;TELEPORT_DISTANCE:I
      intermediary field_30205 Lnet/minecraft/class_1350;field_30205:I
      official a Lcan;a:I
    • HORIZONTAL_RANGE

      private static final int HORIZONTAL_RANGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HORIZONTAL_RANGE Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_RANGE:I
      intermediary field_30206 Lnet/minecraft/class_1350;field_30206:I
      official b Lcan;b:I
    • HORIZONTAL_VARIATION

      private static final int HORIZONTAL_VARIATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HORIZONTAL_VARIATION Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;HORIZONTAL_VARIATION:I
      intermediary field_30207 Lnet/minecraft/class_1350;field_30207:I
      official c Lcan;c:I
    • VERTICAL_VARIATION

      private static final int VERTICAL_VARIATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named VERTICAL_VARIATION Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;VERTICAL_VARIATION:I
      intermediary field_30208 Lnet/minecraft/class_1350;field_30208:I
      official d Lcan;d:I
    • tameable

      private final TameableEntity tameable
      Mappings:
      Namespace Name Mixin selector
      named tameable Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
      intermediary field_6448 Lnet/minecraft/class_1350;field_6448:Lnet/minecraft/class_1321;
      official e Lcan;e:Lbuo;
    • owner

      private LivingEntity owner
      Mappings:
      Namespace Name Mixin selector
      named owner Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;owner:Lnet/minecraft/entity/LivingEntity;
      intermediary field_6444 Lnet/minecraft/class_1350;field_6444:Lnet/minecraft/class_1309;
      official f Lcan;f:Lbtr;
    • world

      private final WorldView world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;world:Lnet/minecraft/world/WorldView;
      intermediary field_6445 Lnet/minecraft/class_1350;field_6445:Lnet/minecraft/class_4538;
      official g Lcan;g:Ldcd;
    • speed

      private final double speed
      Mappings:
      Namespace Name Mixin selector
      named speed Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;speed:D
      intermediary field_6442 Lnet/minecraft/class_1350;field_6442:D
      official h Lcan;h:D
    • updateCountdownTicks

      private int updateCountdownTicks
      Mappings:
      Namespace Name Mixin selector
      named updateCountdownTicks Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;updateCountdownTicks:I
      intermediary field_6443 Lnet/minecraft/class_1350;field_6443:I
      official j Lcan;j:I
    • maxDistance

      private final float maxDistance
      Mappings:
      Namespace Name Mixin selector
      named maxDistance Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;maxDistance:F
      intermediary field_6450 Lnet/minecraft/class_1350;field_6450:F
      official k Lcan;k:F
    • minDistance

      private final float minDistance
      Mappings:
      Namespace Name Mixin selector
      named minDistance Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;minDistance:F
      intermediary field_6449 Lnet/minecraft/class_1350;field_6449:F
      official l Lcan;l:F
    • oldWaterPathfindingPenalty

      private float oldWaterPathfindingPenalty
      Mappings:
      Namespace Name Mixin selector
      named oldWaterPathfindingPenalty Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;oldWaterPathfindingPenalty:F
      intermediary field_6447 Lnet/minecraft/class_1350;field_6447:F
      official m Lcan;m:F
    • leavesAllowed

      private final boolean leavesAllowed
      Mappings:
      Namespace Name Mixin selector
      named leavesAllowed Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;leavesAllowed:Z
      intermediary field_21078 Lnet/minecraft/class_1350;field_21078:Z
      official n Lcan;n:Z
  • Constructor Details

    • FollowOwnerGoal

      public FollowOwnerGoal(TameableEntity tameable, double speed, float minDistance, float maxDistance, boolean leavesAllowed)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;DFFZ)V
      intermediary <init> Lnet/minecraft/class_1350;<init>(Lnet/minecraft/class_1321;DFFZ)V
      official <init> Lcan;<init>(Lbuo;DFFZ)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 a Lcap;a()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 b Lcap;b()Z
    • cannotFollow

      private boolean cannotFollow()
      Mappings:
      Namespace Name Mixin selector
      named cannotFollow Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;cannotFollow()Z
      intermediary method_49121 Lnet/minecraft/class_1350;method_49121()Z
      official h Lcan;h()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 c Lcap;c()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 d Lcap;d()V
    • tick

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      official e Lcap;e()V
    • tryTeleport

      private void tryTeleport()
      Mappings:
      Namespace Name Mixin selector
      named tryTeleport Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleport()V
      intermediary method_23345 Lnet/minecraft/class_1350;method_23345()V
      official i Lcan;i()V
    • tryTeleportTo

      private boolean tryTeleportTo(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      named tryTeleportTo Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;tryTeleportTo(III)Z
      intermediary method_23343 Lnet/minecraft/class_1350;method_23343(III)Z
      official a Lcan;a(III)Z
    • canTeleportTo

      private boolean canTeleportTo(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named canTeleportTo Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;canTeleportTo(Lnet/minecraft/util/math/BlockPos;)Z
      intermediary method_23344 Lnet/minecraft/class_1350;method_23344(Lnet/minecraft/class_2338;)Z
      official a Lcan;a(Liz;)Z
    • getRandomInt

      private int getRandomInt(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      named getRandomInt Lnet/minecraft/entity/ai/goal/FollowOwnerGoal;getRandomInt(II)I
      intermediary method_23342 Lnet/minecraft/class_1350;method_23342(II)I
      official a Lcan;a(II)I