Class FollowOwnerGoal

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

public class FollowOwnerGoal extends Goal
  • Field Details

    • tamable

      private final TameableEntity tamable
    • owner

      private LivingEntity owner
    • level

      private final IWorldReader level
    • speedModifier

      private final double speedModifier
    • timeToRecalcPath

      private int timeToRecalcPath
    • stopDistance

      private final float stopDistance
    • startDistance

      private final float startDistance
    • oldWaterCost

      private float oldWaterCost
    • canFly

      private final boolean canFly
  • Constructor Details

    • FollowOwnerGoal

      public FollowOwnerGoal(TameableEntity p_i225711_1_, double p_i225711_2_, float p_i225711_4_, float p_i225711_5_, boolean p_i225711_6_)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Overrides:
      canContinueToUse in class Goal
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • teleportToOwner

      private void teleportToOwner()
    • maybeTeleportTo

      private boolean maybeTeleportTo(int p_226328_1_, int p_226328_2_, int p_226328_3_)
    • canTeleportTo

      private boolean canTeleportTo(BlockPos p_226329_1_)
    • randomIntInclusive

      private int randomIntInclusive(int p_226327_1_, int p_226327_2_)