Class LifeStealZAPIImpl

java.lang.Object
org.strassburger.lifestealz.api.LifeStealZAPIImpl
All Implemented Interfaces:
LifeStealZAPI

public class LifeStealZAPIImpl extends Object implements LifeStealZAPI
  • Constructor Details

    • LifeStealZAPIImpl

      public LifeStealZAPIImpl(LifeStealZ plugin)
  • Method Details

    • getVersion

      public String getVersion()
      Description copied from interface: LifeStealZAPI
      Get the current version of the LifeStealZ plugin.
      Specified by:
      getVersion in interface LifeStealZAPI
      Returns:
      The current version of the LifeStealZ plugin.
    • getPlayerData

      public PlayerData getPlayerData(UUID uuid)
      Description copied from interface: LifeStealZAPI
      Get the player data for a player.
      Specified by:
      getPlayerData in interface LifeStealZAPI
      Parameters:
      uuid - The UUID of the player to get the data for.
      Returns:
      The player data for the player.
    • savePlayerData

      public void savePlayerData(PlayerData playerData)
      Description copied from interface: LifeStealZAPI
      Save the player data for a player.
      Specified by:
      savePlayerData in interface LifeStealZAPI
      Parameters:
      playerData - The player data to save.
    • isEliminated

      public boolean isEliminated(UUID uuid)
      Description copied from interface: LifeStealZAPI
      Get if a player is eliminated.
      Specified by:
      isEliminated in interface LifeStealZAPI
      Parameters:
      uuid - The UUID of the player to check.
      Returns:
      True if the player is eliminated, false otherwise.
    • eliminate

      public boolean eliminate(UUID uuid)
      Description copied from interface: LifeStealZAPI
      Eliminate a player.
      Specified by:
      eliminate in interface LifeStealZAPI
      Parameters:
      uuid - The UUID of the player to eliminate.
      Returns:
      True if the player was successfully eliminated, false otherwise.
    • revive

      public boolean revive(UUID uuid)
      Description copied from interface: LifeStealZAPI
      Revive a player.
      Specified by:
      revive in interface LifeStealZAPI
      Parameters:
      uuid - The UUID of the player to revive.
      Returns:
      True if the player was successfully revived, false otherwise.
    • getCustomItem

      public org.bukkit.inventory.ItemStack getCustomItem(String customItemID)
      Description copied from interface: LifeStealZAPI
      Get a custom LifeStealZ item by its ID.
      Specified by:
      getCustomItem in interface LifeStealZAPI
      Returns:
      The custom LifeStealZ item with the given ID.
    • getCustomItemData

      public CustomItemData getCustomItemData(String customItemID)
      Description copied from interface: LifeStealZAPI
      Get the custom data for a custom LifeStealZ item.
      Specified by:
      getCustomItemData in interface LifeStealZAPI
      Returns:
      The custom data for the custom LifeStealZ item.
    • getCustomItemIDs

      public Set<String> getCustomItemIDs()
      Description copied from interface: LifeStealZAPI
      Get a list of all custom LifeStealZ item IDs.
      Specified by:
      getCustomItemIDs in interface LifeStealZAPI
      Returns:
      A list of all custom LifeStealZ item IDs.
    • getDefaultHeart

      public org.bukkit.inventory.ItemStack getDefaultHeart()
      Description copied from interface: LifeStealZAPI
      Get the default heart item.
      Specified by:
      getDefaultHeart in interface LifeStealZAPI
      Returns:
      The default heart item.
    • getCustomItemID

      public String getCustomItemID(org.bukkit.inventory.ItemStack item)
      Description copied from interface: LifeStealZAPI
      Get the custom item ID of an item.
      Specified by:
      getCustomItemID in interface LifeStealZAPI
      Parameters:
      item - The item to get the ID from.
      Returns:
      The custom item ID of the item.