Class PathfinderOwnerHurtByTarget

All Implemented Interfaces:
PathfinderInfo, Targeting

public final class PathfinderOwnerHurtByTarget extends TargetPathfinder
Represents a Pathfinder for a Tamable to attack the Target if its owner is hurt
  • Constructor Details

    • PathfinderOwnerHurtByTarget

      public PathfinderOwnerHurtByTarget(@NotNull @NotNull Tameable m)
      Constructs a PathfinderOwnerHurtByTarget.
      Parameters:
      m - Tamable 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