Interface LifeStealZAPI

All Known Implementing Classes:
LifeStealZAPIImpl

public interface LifeStealZAPI
  • Method Details

    • getVersion

      String getVersion()
      Get the current version of the LifeStealZ plugin.
      Returns:
      The current version of the LifeStealZ plugin.
    • getPlayerData

      PlayerData getPlayerData(UUID uuid)
      Get the player data for a player.
      Parameters:
      uuid - The UUID of the player to get the data for.
      Returns:
      The player data for the player.
    • savePlayerData

      void savePlayerData(PlayerData playerData)
      Save the player data for a player.
      Parameters:
      playerData - The player data to save.
    • isEliminated

      boolean isEliminated(UUID uuid)
      Get if a player is eliminated.
      Parameters:
      uuid - The UUID of the player to check.
      Returns:
      True if the player is eliminated, false otherwise.
    • eliminate

      boolean eliminate(UUID uuid)
      Eliminate a player.
      Parameters:
      uuid - The UUID of the player to eliminate.
      Returns:
      True if the player was successfully eliminated, false otherwise.
    • revive

      boolean revive(UUID uuid)
      Revive a player.
      Parameters:
      uuid - The UUID of the player to revive.
      Returns:
      True if the player was successfully revived, false otherwise.
    • getCustomItem

      org.bukkit.inventory.ItemStack getCustomItem(String customItemID)
      Get a custom LifeStealZ item by its ID.
      Returns:
      The custom LifeStealZ item with the given ID.
    • getCustomItemData

      CustomItemData getCustomItemData(String customItemID)
      Get the custom data for a custom LifeStealZ item.
      Returns:
      The custom data for the custom LifeStealZ item.
    • getCustomItemIDs

      Set<String> getCustomItemIDs()
      Get a list of all custom LifeStealZ item IDs.
      Returns:
      A list of all custom LifeStealZ item IDs.
    • getDefaultHeart

      org.bukkit.inventory.ItemStack getDefaultHeart()
      Get the default heart item.
      Returns:
      The default heart item.
    • getCustomItemID

      String getCustomItemID(org.bukkit.inventory.ItemStack item)
      Get the custom item ID of an item.
      Parameters:
      item - The item to get the ID from.
      Returns:
      The custom item ID of the item.