Class PathfinderNearestHealableRaider<T extends LivingEntity>

All Implemented Interfaces:
Conditional<LivingEntity>, PathfinderInfo, Repeated, Filtering<T>, Targeting

public final class PathfinderNearestHealableRaider<T extends LivingEntity> extends PathfinderNearestAttackableTarget<T>
Represents a Pathfinder for Raiders to heal another Raider
  • Constructor Details

    • PathfinderNearestHealableRaider

      public PathfinderNearestHealableRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter) throws IllegalArgumentException
      Constructs a PathfinderNearestHealableRaider with see set to true.
      Parameters:
      m - Raider to use
      filter - Class of Entity to find
      Throws:
      IllegalArgumentException - if filter is null
    • PathfinderNearestHealableRaider

      public PathfinderNearestHealableRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, boolean mustSee) throws IllegalArgumentException
      Constructs a PathfinderNearestHealableRaider with no conditions.
      Parameters:
      m - Raider to use
      filter - Class of Entity to find
      mustSee - Whether the Raider must see the target
      Throws:
      IllegalArgumentException - if filter is null
    • PathfinderNearestHealableRaider

      public PathfinderNearestHealableRaider(@NotNull @NotNull Raider m, @NotNull @NotNull Class<T> filter, boolean mustSee, @Nullable @Nullable Predicate<LivingEntity> conditions) throws IllegalArgumentException
      Constructs a PathfinderNearestHealableRaider.
      Parameters:
      m - Raider to use
      filter - Class of Entity to find
      mustSee - Whether the Raider must see the target
      conditions - Conditions needed to heal
      Throws:
      IllegalArgumentException - if filter is null
  • Method Details