Interface Conditional<T>

Type Parameters:
T - Type of Condition to resolve
All Known Implementing Classes:
PathfinderBreakDoor, PathfinderNearestAttackableTarget, PathfinderNearestAttackableTargetRaider, PathfinderNearestHealableRaider, PathfinderUseItem, PathfinderWildTarget

public interface Conditional<T>
Represents a Conditional State for this Pathfinder to work
  • Method Details

    • getCondition

      @NotNull @NotNull Predicate<T> getCondition()
      Sets the Condition of this Conditional Pathfinder.
      Returns:
      Predicate of Condition
    • setCondition

      void setCondition(@NotNull @NotNull Predicate<T> condition)
      Sets the Condition of this Conditional Pathfinder.
      Parameters:
      condition - Condition to set