Class PathfinderRandomSwim

All Implemented Interfaces:
PathfinderInfo, Repeated, SpeedModifier

public final class PathfinderRandomSwim extends PathfinderRandomStroll
Represents a Pathfinder for a Mob to randomly swim
  • Field Details

    • DEFAULT_INTERVAL

      public static final int DEFAULT_INTERVAL
      The Default Interval to swim, in ticks
      See Also:
  • Constructor Details

    • PathfinderRandomSwim

      public PathfinderRandomSwim(@NotNull @NotNull Creature c)
      Constructs a PathfinderRandomSwim with the DEFAULT_INTERVAL.
      Parameters:
      c - Creature to use
    • PathfinderRandomSwim

      public PathfinderRandomSwim(@NotNull @NotNull Creature c, int interval)
      Constructs a PathfinderRandomSwim with no speed modifier.
      Parameters:
      c - Creature to use
      interval - Interval, in ticks, of how often to swim
    • PathfinderRandomSwim

      public PathfinderRandomSwim(@NotNull @NotNull Creature c, double speedMod)
      Constructs a PathfinderRandomSwim with the DEFAULT_INTERVAL
      Parameters:
      c - Creature to use
      speedMod - Speed Modifier while swimming
    • PathfinderRandomSwim

      public PathfinderRandomSwim(@NotNull @NotNull Creature c, double speedMod, int interval)
      Constructs a PathfinderRandomSwim.
      Parameters:
      c - Creature to use
      speedMod - Speed Modifier while swimming
      interval - Interval, in ticks, of how often to swim
  • Method Details