类 MoveThroughVillageGoal

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

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

    • mob

      protected final PathfinderMob mob
    • speedModifier

      private final double speedModifier
    • path

      @Nullable private Path path
    • poiPos

      private BlockPos poiPos
    • onlyAtNight

      private final boolean onlyAtNight
    • visited

      private final List<BlockPos> visited
    • distanceToPoi

      private final int distanceToPoi
    • canDealWithDoors

      private final BooleanSupplier canDealWithDoors
  • 构造器详细资料

    • MoveThroughVillageGoal

      public MoveThroughVillageGoal(PathfinderMob p_25582_, double p_25583_, boolean p_25584_, int p_25585_, BooleanSupplier p_25586_)
  • 方法详细资料

    • canUse

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

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

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

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

      private boolean hasNotVisited(BlockPos p_25593_)
    • updateVisited

      private void updateVisited()