Package co.crystaldev.alpinecore.util
Class ItemHelper
java.lang.Object
co.crystaldev.alpinecore.util.ItemHelper
Utility for interacting with
ItemStack
s.- Since:
- 0.1.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
static final MappedMaterial
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isArmor
(@NotNull org.bukkit.inventory.ItemStack is) static boolean
isMeleeWeapon
(@NotNull org.bukkit.inventory.ItemStack is) static boolean
isTool
(@NotNull org.bukkit.inventory.ItemStack is)
-
Field Details
-
HELMETS
-
CHESTPLATES
-
LEGGINGS
-
BOOTS
-
SWORDS
-
AXES
-
PICKAXES
-
SHOVELS
-
HOES
-
ARMOR
-
TOOLS
-
-
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
-