Class FitnessBoostManager
java.lang.Object
nl.minetopiasdb.api.playerdata.fitness.boost.FitnessBoostManager
Class for managing fitness boosts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateBoost(UUID uuid, int fitness, int minutes) Create a fitness boostgetFitnessBoosts(boolean expired) Get all (expired) fitnessboostsstatic FitnessBoostManagerGet the instance of FitnessBoostManager.voidRun the fitnessboost task once.
-
Constructor Details
-
FitnessBoostManager
public FitnessBoostManager()
-
-
Method Details
-
getInstance
Get the instance of FitnessBoostManager.- Returns:
- instance of FitnessBoostManager.
-
getFitnessBoosts
Get all (expired) fitnessboosts- Parameters:
expired- true if only expired fitnessboosts need to be returned- Returns:
- list of (expired) fitness boosts
-
createBoost
Create a fitness boost- Parameters:
uuid- uuid of onling player. Offline players are currently not supportedfitness- amount of fitness that should be added (or removed if fitness less than 0)minutes- amount of minutes that this booster should run for
-
manageTask
public void manageTask()Run the fitnessboost task once.
-