Class PathfinderWildTarget<T extends LivingEntity>

Type Parameters:
T - Type of Target to look for
All Implemented Interfaces:
Conditional<LivingEntity>, PathfinderInfo, Repeated, Filtering<T>, Targeting

public final class PathfinderWildTarget<T extends LivingEntity> extends PathfinderNearestAttackableTarget<T>
Represents a Pathfinder when a Wild Animal Mob but not tamed targets another Entity.
  • Constructor Details

    • PathfinderWildTarget

      public PathfinderWildTarget(@NotNull @NotNull Tameable mob, @NotNull @NotNull Class<T> filter) throws IllegalArgumentException
      Constructs a PathfinderWildTarget with see set to true.
      Parameters:
      mob - Tameable Mob to use
      filter - Class of entity to find
      Throws:
      IllegalArgumentException - if filter is null
    • PathfinderWildTarget

      public PathfinderWildTarget(@NotNull @NotNull Tameable mob, @NotNull @NotNull Class<T> filter, boolean see) throws IllegalArgumentException
      Constructs a PathfinderWildTarget with no conditions.
      Parameters:
      mob - Tameable Mob to use
      filter - Class of entity to find
      see - Whether entity must see target
      Throws:
      IllegalArgumentException - if filter is null
    • PathfinderWildTarget

      public PathfinderWildTarget(@NotNull @NotNull Tameable mob, @NotNull @NotNull Class<T> filter, boolean see, @Nullable @Nullable Predicate<LivingEntity> conditions) throws IllegalArgumentException
      Constructs a PathfinderWildTarget.
      Parameters:
      mob - Tameable Mob to use
      filter - Class of entity to find
      see - Whether entity must see target
      conditions - Conditions that the target must match
      Throws:
      IllegalArgumentException - if filter is null
  • Method Details