Class PathfinderSpearUse

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

public class PathfinderSpearUse extends Pathfinder
Pathfinder for using a spear
  • Constructor Details

    • PathfinderSpearUse

      public PathfinderSpearUse(@NotNull @NotNull Mob entity, double speedModifierWhenCharging, double speedModifierWhenRepositioning, float approachDistance, float targetInRangeRadius)
      Constructs a Pathfinder.
      Parameters:
      entity - Entity to use
  • Method Details

    • 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.
      Returns:
      Internal Name
    • getSpeedModifierWhenCharging

      public double getSpeedModifierWhenCharging()
    • setSpeedModifierWhenCharging

      public void setSpeedModifierWhenCharging(double speedModifierWhenCharging)
    • getSpeedModifierWhenRepositioning

      public double getSpeedModifierWhenRepositioning()
    • setSpeedModifierWhenRepositioning

      public void setSpeedModifierWhenRepositioning(double speedModifierWhenRepositioning)
    • getApproachDistance

      public float getApproachDistance()
    • setApproachDistance

      public void setApproachDistance(float approachDistance)
    • getTargetInRangeRadius

      public float getTargetInRangeRadius()
    • setTargetInRangeRadius

      public void setTargetInRangeRadius(float targetInRangeRadius)