Class PathfinderRandomStrollThroughVillage

java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderRandomStrollThroughVillage
All Implemented Interfaces:
PathfinderInfo

public final class PathfinderRandomStrollThroughVillage extends Pathfinder
Represents a Pathfinder for a Creature to randomly stroll through a village
  • Constructor Details

    • PathfinderRandomStrollThroughVillage

      public PathfinderRandomStrollThroughVillage(@NotNull @NotNull Creature c)
      Constructs a PathfinderRandomStrollThroughVillage with a default interval of 100 ticks.
      Parameters:
      c - Creature to use
    • PathfinderRandomStrollThroughVillage

      public PathfinderRandomStrollThroughVillage(@NotNull @NotNull Creature c, int interval)
      Constructs a PathfinderRandomStrollThroughVillage.
      Parameters:
      c - Creature to use
      interval - Interval, in ticks, to stroll
  • Method Details

    • getInterval

      public int getInterval()
      Gets the current interval of this PathfinderRandomStrollThroughVillage.
      Returns:
      Interval to stroll, in ticks
    • setInterval

      public void setInterval(int interval)
      Sets the current interval of this PathfinderRandomStrollThroughVillage.
      Parameters:
      interval - interval to stroll, in ticks
    • getFlags

      Description copied from class: Pathfinder

      Fetches an Array of Flags that this Pathfinder has.

      Specified by:
      getFlags in class Pathfinder
      Returns:
      Array of Pathfinder Flags
    • getInternalName

      public String getInternalName()
      Description copied from interface: PathfinderInfo
      Returns the NMS Internal Name.
      Returns:
      Internal Name