Interface Filtering<T extends LivingEntity>

Type Parameters:
T - Type of Entity to filter
All Known Implementing Classes:
PathfinderAvoidEntity, PathfinderInteract, PathfinderLookAtEntity, PathfinderNearestAttackableTarget, PathfinderNearestAttackableTargetRaider, PathfinderNearestHealableRaider, PathfinderWildTarget

public interface Filtering<T extends LivingEntity>
Represents a Pathfinder that filters in an entity class
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the filter that this Pathfinder is looking for.
    void
    setFilter(@NotNull Class<T> clazz)
    Set the Filter that this Pathfinder is looking for.
  • Method Details

    • setFilter

      void setFilter(@NotNull @NotNull Class<T> clazz) throws IllegalArgumentException
      Set the Filter that this Pathfinder is looking for.
      Parameters:
      clazz - Filter to set
      Throws:
      IllegalArgumentException - if clazz is null
    • getFilter

      Class<T> getFilter()
      Get the filter that this Pathfinder is looking for.
      Returns:
      Filter found