Class CustomItem
java.lang.Object
org.strassburger.lifestealz.util.customitems.CustomItem
-
Constructor Summary
ConstructorDescriptionCustomItem
(org.bukkit.inventory.ItemStack itemStack) CustomItem
(org.bukkit.Material material) -
Method Summary
Modifier and TypeMethodDescriptionaddEnchantment
(org.bukkit.enchantments.Enchantment enchantment, int level) addFlag
(org.bukkit.inventory.ItemFlag itemFlag) org.bukkit.inventory.ItemStack
org.bukkit.persistence.PersistentDataContainer
setAmount
(int amount) setCustomModelID
(int customModelID) setEnchanted
(boolean enchanted) setMaterial
(org.bukkit.Material material) setName
(net.kyori.adventure.text.Component name) setUnbreakable
(boolean unbreakable)
-
Constructor Details
-
CustomItem
public CustomItem(org.bukkit.inventory.ItemStack itemStack) -
CustomItem
public CustomItem(org.bukkit.Material material) -
CustomItem
public CustomItem()
-
-
Method Details
-
setMaterial
-
setAmount
-
setName
-
setName
-
setCustomModelID
-
setUnbreakable
-
setEnchanted
-
addFlag
-
addEnchantment
-
getPersistentDataContainer
public org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer() -
makeForbidden
-
setLore
-
addLore
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()
-