Class PathfinderLlamaFollowCaravan

java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderLlamaFollowCaravan
All Implemented Interfaces:
PathfinderInfo, SpeedModifier

public final class PathfinderLlamaFollowCaravan extends Pathfinder implements SpeedModifier
Represents a Pathfinder for a Llama to follow a Caravan
  • Constructor Details

    • PathfinderLlamaFollowCaravan

      public PathfinderLlamaFollowCaravan(@NotNull @NotNull Llama m)
      Constructs a PathfinderLlamaFollowCaravan with no speed modifier.
      Parameters:
      m - Llama to use
    • PathfinderLlamaFollowCaravan

      public PathfinderLlamaFollowCaravan(@NotNull @NotNull Llama m, double speedMod)
      Constructs a PathfinderLlamaFollowCaravan.
      Parameters:
      m - Llama to use
      speedMod - Speed Modifier while following
  • Method Details

    • getSpeedModifier

      public double getSpeedModifier()
      Description copied from interface: SpeedModifier
      Get the Speed Modifier of this Pathfinder.
      Specified by:
      getSpeedModifier in interface SpeedModifier
      Returns:
      Speed Modifier
    • setSpeedModifier

      public void setSpeedModifier(double mod)
      Description copied from interface: SpeedModifier
      Sets the Speed Modifier of this Pathfinder.
      Specified by:
      setSpeedModifier in interface SpeedModifier
      Parameters:
      mod - Modifier to set
    • getFlags

      @NotNull public @NotNull Pathfinder.PathfinderFlag[] 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 pathfinder's internal name. This may match the actual NMS name of the pathfinder, but it may not.
      Specified by:
      getInternalName in interface PathfinderInfo
      Returns:
      Internal Name