Class SkillRequirement
java.lang.Object
net.storm.api.movement.pathfinder.model.requirement.SkillRequirement
- All Implemented Interfaces:
Supplier<Boolean>,Requirement
Requirement that checks for a minimum skill level.
SkillRequirement verifies that the player has the required level in a specific skill. Can optionally consider boosted levels from potions.
Member Skill Handling
For member-only skills (Agility, Herblore, Thieving, etc.), the requirement automatically fails on free-to-play worlds regardless of actual level.
Boost Consideration
By default, boosted levels are considered. This can be disabled to require the base level (useful for permanent content unlocks).
Usage Example
// Using boosted level (default)
SkillRequirement req = new SkillRequirement(Skill.AGILITY, 70);
// Requiring base level only
SkillRequirement baseReq = new SkillRequirement(Skill.MINING, 60, false);
if (req.get()) {
// Has 70+ Agility (or boosted to 70+)
}
- See Also:
-
Field Summary
Fields inherited from interface net.storm.api.movement.pathfinder.model.requirement.Requirement
ARCEUUS_FAIRY_RING, CABIN_FEVER_QUEST, DESERT_DIARY_ELITE, GRAND_TREE_QUEST, ICTHLARINS_LITTLE_HELPER, KARAMJA_DIARY_HARD, KHAREDST_PAGE_1, KHAREDST_PAGE_2, KHAREDST_PAGE_3, KHAREDST_PAGE_4, KHAREDST_PAGE_5, KUDOS_153, MONKEY_MADNESS_I, MONKEY_MADNESS_I_FINISHED, MONKEY_MADNESS_II, ONE_SMALL_FAVOUR, PANDEMONIUM_COMPLETED, PRIEST_IN_PERIL_QUEST, REGICIDE_QUEST, SONG_OF_THE_ELVES_QUEST, SUMMER_SHORE_COMPLETED, THE_GOLEM, VISITED_DEEPFIN_POINT, VISITED_KOUREND, VISITED_MORYTANIA, VISITED_PORT_ROBERTS, VISITED_VARLAMORE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor with useBoosted enabled.SkillRequirement(net.runelite.api.Skill skill, int level) Constructs a skill requirement using boosted levels.SkillRequirement(net.runelite.api.Skill skill, int level, boolean useBoosted) Constructs a skill requirement with all parameters specified. -
Method Summary
-
Constructor Details
-
SkillRequirement
public SkillRequirement()Default constructor with useBoosted enabled. -
SkillRequirement
public SkillRequirement(net.runelite.api.Skill skill, int level, boolean useBoosted) Constructs a skill requirement with all parameters specified.- Parameters:
skill- the skill to checklevel- the minimum required leveluseBoosted- whether to consider boosted levels
-
SkillRequirement
public SkillRequirement(net.runelite.api.Skill skill, int level) Constructs a skill requirement using boosted levels.- Parameters:
skill- the skill to checklevel- the minimum required level
-
-
Method Details