Class ReviveTaskManager
java.lang.Object
com.zetaplugins.lifestealz.util.revive.ReviveTaskManager
Manages beacon revive tasks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReviveTask(Location location, ReviveTask reviveTask) Adds a revive task for the specified beacon location.getReviveTask(Location location) Get the revive task for the specified beacon location.booleanisReviving(Location location) Checks if there is an active revive task at the specified beacon location.booleanisRevivingTarget(UUID playerId) Checks if any revive task is targeting the specified player UUID.voidremoveReviveTask(Location location) Removes the revive task associated with the specified location.
-
Constructor Details
-
ReviveTaskManager
public ReviveTaskManager()
-
-
Method Details
-
getReviveTask
Get the revive task for the specified beacon location.- Parameters:
location- the location of the revive beacon- Returns:
- the revive task, or null if none exists
-
addReviveTask
Adds a revive task for the specified beacon location.- Parameters:
location- the location of the revive beaconreviveTask- the revive task to add
-
isReviving
Checks if there is an active revive task at the specified beacon location.- Parameters:
location- the location to check- Returns:
- true if there is a revive task at the location, false otherwise
-
removeReviveTask
Removes the revive task associated with the specified location.- Parameters:
location- the location of the revive task to remove
-
isRevivingTarget
Checks if any revive task is targeting the specified player UUID.- Parameters:
playerId- the UUID of the player to check- Returns:
- true if the player is being revived, false otherwise
-