Class CustomItem
java.lang.Object
com.zetaplugins.lifestealz.util.customitems.CustomItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEnchantment(Enchantment enchantment, int level) setAmount(int amount) setCustomModelID(int customModelID) setDespawnable(boolean despawnable) setEnchanted(boolean enchanted) Sets the custom item ID using Paper's CustomModelData DataComponent.setInvulnerable(boolean invulnerable) setMaterial(Material material) setName(net.kyori.adventure.text.Component name) setUnbreakable(boolean unbreakable)
-
Constructor Details
-
CustomItem
-
CustomItem
-
CustomItem
public CustomItem()
-
-
Method Details
-
setMaterial
-
setAmount
-
setName
-
setName
-
setCustomModelID
-
setUnbreakable
-
setEnchanted
-
addFlag
-
setDespawnable
-
setInvulnerable
-
addEnchantment
-
getPersistentDataContainer
-
makeForbidden
-
setLore
-
addLore
-
setId
Sets the custom item ID using Paper's CustomModelData DataComponent.- Parameters:
stringId- The string ID of the custom item.intId- The integer ID of the custom item. Use 0 if not needed.- Returns:
- The current CustomItem instance for method chaining.
-
getItemStack
-