Package stawa.vitalstrike.items
Class CustomItems
java.lang.Object
stawa.vitalstrike.items.CustomItems
Manages custom items for the VitalStrike plugin.
This class handles creation and validation of special items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackCreates a new Vital Awakening item with custom properties and lore.booleanisVitalAwakening(org.bukkit.inventory.ItemStack item) Checks if the given ItemStack is a Vital Awakening item.
-
Constructor Details
-
CustomItems
Constructs a new CustomItems instance.- Parameters:
plugin- The VitalStrike plugin instance- Throws:
Errors.ConfigurationException- If there's an error in the configuration
-
-
Method Details
-
createVitalAwakening
Creates a new Vital Awakening item with custom properties and lore. This special item allows downed players to self-revive when used.- Returns:
- A new ItemStack representing the Vital Awakening item
- Throws:
Errors.ConfigurationException- If there's an error creating the item or setting its metadata
-
isVitalAwakening
public boolean isVitalAwakening(org.bukkit.inventory.ItemStack item) Checks if the given ItemStack is a Vital Awakening item.- Parameters:
item- The ItemStack to check- Returns:
- true if the item is a Vital Awakening item, false otherwise
-