Class DamageLoreRemover

java.lang.Object
studio.magemonkey.fabled.api.util.DamageLoreRemover

public class DamageLoreRemover extends Object

Utility class for removing vanilla damage lore lines from items.

  • 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