Class DamageLoreRemover
java.lang.Object
studio.magemonkey.fabled.api.util.DamageLoreRemover
Utility class for removing vanilla damage lore lines from items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.inventory.ItemStack
removeAttackDmg
(org.bukkit.inventory.ItemStack item) Removes the vanilla damage lore from tools.
-
Constructor Details
-
DamageLoreRemover
public DamageLoreRemover()
-
-
Method Details
-
removeAttackDmg
public static org.bukkit.inventory.ItemStack removeAttackDmg(org.bukkit.inventory.ItemStack item) Removes the vanilla damage lore from tools.
If you pass in something other than a tool this will do nothing.
If there was some problem with setting up the reflection classes, this will also do nothing.
- Parameters:
item
- tool to remove the lore from- Returns:
- the tool without the damage lore
-