Class HasExpRequirement
java.lang.Object
io.github.lucfr1746.llibrary.requirement.Requirement
io.github.lucfr1746.llibrary.requirement.list.HasExpRequirement
Represents a requirement that checks if a player has a minimum amount of experience.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(org.bukkit.entity.Player player) Evaluates whether the player meets the required experience.Methods inherited from class io.github.lucfr1746.llibrary.requirement.Requirement
getAcceptHandler, getDenyHandler, hasAcceptHandler, hasDenyHandler, setAcceptHandler, setDenyHandler
-
Constructor Details
-
HasExpRequirement
public HasExpRequirement(int amount) Creates a new experience requirement.- Parameters:
amount
- The minimum experience points required.
-
-
Method Details
-
evaluate
public boolean evaluate(org.bukkit.entity.Player player) Evaluates whether the player meets the required experience.- Specified by:
evaluate
in classRequirement
- Parameters:
player
- The player to check.- Returns:
true
if the player has at least the required experience, otherwisefalse
.
-