类 FollowOwnerGoal

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

public class FollowOwnerGoal extends Goal
  • 字段详细资料

    • TELEPORT_WHEN_DISTANCE_IS

      public static final int TELEPORT_WHEN_DISTANCE_IS
      另请参阅:
    • MIN_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING

      private static final int MIN_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING
      另请参阅:
    • MAX_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING

      private static final int MAX_HORIZONTAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING
      另请参阅:
    • MAX_VERTICAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING

      private static final int MAX_VERTICAL_DISTANCE_FROM_PLAYER_WHEN_TELEPORTING
      另请参阅:
    • tamable

      private final TamableAnimal tamable
    • owner

      private LivingEntity owner
    • level

      private final LevelReader 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
  • 构造器详细资料

    • FollowOwnerGoal

      public FollowOwnerGoal(TamableAnimal pTamable, double pSpeedModifier, float pStartDistance, float pStopDistance, boolean pCanFly)
  • 方法详细资料

    • canUse

      public boolean canUse()
      指定者:
      canUse 在类中 Goal
    • canContinueToUse

      public boolean canContinueToUse()
      覆盖:
      canContinueToUse 在类中 Goal
    • unableToMove

      private boolean unableToMove()
    • start

      public void start()
      覆盖:
      start 在类中 Goal
    • stop

      public void stop()
      覆盖:
      stop 在类中 Goal
    • tick

      public void tick()
      覆盖:
      tick 在类中 Goal
    • teleportToOwner

      private void teleportToOwner()
    • maybeTeleportTo

      private boolean maybeTeleportTo(int pX, int pY, int pZ)
    • canTeleportTo

      private boolean canTeleportTo(BlockPos pPos)
    • randomIntInclusive

      private int randomIntInclusive(int pMin, int pMax)