Class PathfinderInteract<T extends LivingEntity>

Type Parameters:
T - Type of LivingEntity to look at
All Implemented Interfaces:
PathfinderInfo, Ranged, Filtering<T>, Probable

public final class PathfinderInteract<T extends LivingEntity> extends PathfinderLookAtEntity<T>
Represents a pathfinder used by Wandering Traders to look at the player. Closely related to PathfinderLookAtEntity
  • Constructor Details

    • PathfinderInteract

      public PathfinderInteract(@NotNull @NotNull Mob entity, Class<T> filter, float lookRange, float probability)
      Constructs a PathfinderInteract
      Parameters:
      entity - Mob to use
      filter - Filter class to look at
      lookRange - Range of blocks to find selected class filter
      probability - Probability (0.0 - 1.0) to look at something. Called every tick, recommended to be a low number. See PathfinderLookAtEntity.DEFAULT_PROBABILITY.
    • PathfinderInteract

      public PathfinderInteract(@NotNull @NotNull Mob entity, Class<T> filter, float lookRange)
      Constructs a PathfinderInteract
      Parameters:
      entity - Mob to use
      filter - Filter class to look at
      lookRange - Range of blocks to find selected class filter
  • Method Details