Package org.strassburger.lifestealz.api
Class LifeStealZAPIImpl
java.lang.Object
org.strassburger.lifestealz.api.LifeStealZAPIImpl
- All Implemented Interfaces:
LifeStealZAPI
-
Constructor Summary
-
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.
-
Constructor Details
-
LifeStealZAPIImpl
-
-
Method Details
-
getVersion
Description copied from interface:LifeStealZAPI
Get the current version of the LifeStealZ plugin.- Specified by:
getVersion
in interfaceLifeStealZAPI
- Returns:
- The current version of the LifeStealZ plugin.
-
getPlayerData
Description copied from interface:LifeStealZAPI
Get the player data for a player.- Specified by:
getPlayerData
in interfaceLifeStealZAPI
- Parameters:
uuid
- The UUID of the player to get the data for.- Returns:
- The player data for the player.
-
savePlayerData
Description copied from interface:LifeStealZAPI
Save the player data for a player.- Specified by:
savePlayerData
in interfaceLifeStealZAPI
- Parameters:
playerData
- The player data to save.
-
isEliminated
Description copied from interface:LifeStealZAPI
Get if a player is eliminated.- Specified by:
isEliminated
in interfaceLifeStealZAPI
- Parameters:
uuid
- The UUID of the player to check.- Returns:
- True if the player is eliminated, false otherwise.
-
eliminate
Description copied from interface:LifeStealZAPI
Eliminate a player.- Specified by:
eliminate
in interfaceLifeStealZAPI
- Parameters:
uuid
- The UUID of the player to eliminate.- Returns:
- True if the player was successfully eliminated, false otherwise.
-
revive
Description copied from interface:LifeStealZAPI
Revive a player.- Specified by:
revive
in interfaceLifeStealZAPI
- Parameters:
uuid
- The UUID of the player to revive.- Returns:
- True if the player was successfully revived, false otherwise.
-
getCustomItem
Description copied from interface:LifeStealZAPI
Get a custom LifeStealZ item by its ID.- Specified by:
getCustomItem
in interfaceLifeStealZAPI
- Returns:
- The custom LifeStealZ item with the given ID.
-
getCustomItemData
Description copied from interface:LifeStealZAPI
Get the custom data for a custom LifeStealZ item.- Specified by:
getCustomItemData
in interfaceLifeStealZAPI
- Returns:
- The custom data for the custom LifeStealZ item.
-
getCustomItemIDs
Description copied from interface:LifeStealZAPI
Get a list of all custom LifeStealZ item IDs.- Specified by:
getCustomItemIDs
in interfaceLifeStealZAPI
- 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 interfaceLifeStealZAPI
- Returns:
- The default heart item.
-
getCustomItemID
Description copied from interface:LifeStealZAPI
Get the custom item ID of an item.- Specified by:
getCustomItemID
in interfaceLifeStealZAPI
- Parameters:
item
- The item to get the ID from.- Returns:
- The custom item ID of the item.
-