All Superinterfaces:
Supplier<Boolean>
All Known Implementing Classes:
CompositeSkillRequirement, GenericRequirement, ItemRequirement, QuestRequirement, SkillRequirement, VarRequirement

public interface Requirement extends Supplier<Boolean>
Base interface for all requirement types in the pathfinding system.

Requirement extends Supplier to provide a boolean check that determines whether a transport, teleport, or location can be used. The interface also contains common predefined requirement constants.

Requirement Types

Predefined Constants

Common requirements are predefined as static constants:

Usage Example


 // Check a predefined requirement
 if (Requirement.VISITED_VARLAMORE.get()) {
     // Player has visited Varlamore
 }

 // Custom lambda requirement
 Requirement customReq = () -> Static.getSkills().getLevel(Skill.AGILITY) >= 70;
 if (customReq.get()) {
     // Custom condition met
 }
 
See Also: