Class PathfinderRangedCrossbowAttack

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

public final class PathfinderRangedCrossbowAttack extends Pathfinder implements SpeedModifier, Ranged
Represents a Pathfinder for Any Crossbow-Specific Ranged Monster to shoot arrows from a crossbow
  • Constructor Details

    • PathfinderRangedCrossbowAttack

      public PathfinderRangedCrossbowAttack(@NotNull @NotNull Pillager m)
      Constructs a PathfinderRangedCrossbowAttack with the default speed modifier.
      Parameters:
      m - Pillager to use
    • PathfinderRangedCrossbowAttack

      public PathfinderRangedCrossbowAttack(@NotNull @NotNull Pillager m, double speedMod)
      Constructs a PathfinderRangedCrossbowAttack with the default range.
      Parameters:
      m - Pillager to use
      speedMod - Speed Modifier while attacking
    • PathfinderRangedCrossbowAttack

      public PathfinderRangedCrossbowAttack(@NotNull @NotNull Pillager m, double speedMod, float range)
      Constructs a PathfinderRangedCrossbowAttack.
      Parameters:
      m - Pillager to use
      speedMod - Speed Modifier while attacking
      range - Range of attack
  • Method Details

    • getRange

      public float getRange()
      Description copied from interface: Ranged
      Gets the current Range.
      Specified by:
      getRange in interface Ranged
      Returns:
      Current Range
    • setRange

      public void setRange(float range)
      Description copied from interface: Ranged
      Sets the current Range.
      Specified by:
      setRange in interface Ranged
      Parameters:
      range - Range to set
    • 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

      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.
      Specified by:
      getInternalName in interface PathfinderInfo
      Returns:
      Internal Name