Package org.strassburger.lifestealz.api
Interface LifeStealZAPI
- All Known Implementing Classes:
LifeStealZAPIImpl
public interface LifeStealZAPI
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Eliminate a player.org.bukkit.inventory.ItemStack
getCustomItem
(String customItemID) Get a custom LifeStealZ item by its ID.getCustomItemData
(String customItemID) Get the custom data for a custom LifeStealZ item.getCustomItemID
(org.bukkit.inventory.ItemStack item) Get the custom item ID of an item.Get a list of all custom LifeStealZ item IDs.org.bukkit.inventory.ItemStack
Get the default heart item.getPlayerData
(UUID uuid) Get the player data for a player.Get the current version of the LifeStealZ plugin.boolean
isEliminated
(UUID uuid) Get if a player is eliminated.boolean
Revive a player.void
savePlayerData
(PlayerData playerData) Save the player data for a player.
-
Method Details
-
getVersion
String getVersion()Get the current version of the LifeStealZ plugin.- Returns:
- The current version of the LifeStealZ plugin.
-
getPlayerData
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
Save the player data for a player.- Parameters:
playerData
- The player data to save.
-
isEliminated
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
Eliminate a player.- Parameters:
uuid
- The UUID of the player to eliminate.- Returns:
- True if the player was successfully eliminated, false otherwise.
-
revive
Revive a player.- Parameters:
uuid
- The UUID of the player to revive.- Returns:
- True if the player was successfully revived, false otherwise.
-
getCustomItem
Get a custom LifeStealZ item by its ID.- Returns:
- The custom LifeStealZ item with the given ID.
-
getCustomItemData
Get the custom data for a custom LifeStealZ item.- Returns:
- The custom data for the custom LifeStealZ item.
-
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
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.
-