Class ReviveTaskManager

java.lang.Object
com.zetaplugins.lifestealz.util.revive.ReviveTaskManager

public class ReviveTaskManager extends Object
Manages beacon revive tasks
  • Constructor Details

    • ReviveTaskManager

      public ReviveTaskManager()
  • Method Details

    • getReviveTask

      public ReviveTask getReviveTask(Location location)
      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

      public void addReviveTask(Location location, ReviveTask reviveTask)
      Adds a revive task for the specified beacon location.
      Parameters:
      location - the location of the revive beacon
      reviveTask - the revive task to add
    • isReviving

      public boolean isReviving(Location location)
      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

      public void removeReviveTask(Location location)
      Removes the revive task associated with the specified location.
      Parameters:
      location - the location of the revive task to remove
    • isRevivingTarget

      public boolean isRevivingTarget(UUID playerId)
      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