Class PathfinderLeapAtTarget

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

public final class PathfinderLeapAtTarget extends Pathfinder
Represents a Pathfinder for a Mob to leap at its target
  • Constructor Details

    • PathfinderLeapAtTarget

      public PathfinderLeapAtTarget(@NotNull @NotNull Mob m)
      Constructs a PathfinderLeapAtTarget with a Y of 3.
      Parameters:
      m - Mob to use
    • PathfinderLeapAtTarget

      public PathfinderLeapAtTarget(@NotNull @NotNull Mob m, float y)
      Constructs a PathfinderLeapAtTarget.
      Parameters:
      m - Mob to use
      y - Height to use while leaping
  • Method Details

    • 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
    • getHeight

      public float getHeight()
      Fetches the Y value height while leaping.
      Returns:
      Y value height
    • setHeight

      public void setHeight(float height)
      Sets the Y value height while leaping.
      Parameters:
      height - New Y Value Height
    • getInternalName

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