Class ItemHelper

java.lang.Object
co.crystaldev.alpinecore.util.ItemHelper

public final class ItemHelper extends Object
Utility for interacting with ItemStacks.
Since:
0.1.0
  • Field Details

  • Constructor Details

    • ItemHelper

      public ItemHelper()
  • Method Details

    • isMeleeWeapon

      public static boolean isMeleeWeapon(@NotNull @NotNull org.bukkit.inventory.ItemStack is)
      Returns:
      whether an item is a melee weapon
    • isArmor

      public static boolean isArmor(@NotNull @NotNull org.bukkit.inventory.ItemStack is)
      Returns:
      whether an item is an armor piece
    • isTool

      public static boolean isTool(@NotNull @NotNull org.bukkit.inventory.ItemStack is)
      Returns:
      whether an item is a tool