Package ru.cwcode.cwutils.items
Class ItemBuilder
java.lang.Object
ru.cwcode.cwutils.items.ItemBuilder
- Direct Known Subclasses:
ItemBuilderLegacy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionItemBuilder(org.bukkit.inventory.ItemStack item) ItemBuilder(org.bukkit.Material material) -
Method Summary
Modifier and TypeMethodDescriptionamount(int amount) attackKnockback(double knockback) attackSpeed(double speed) org.bukkit.inventory.ItemStackbuild()customEffect(org.bukkit.potion.PotionEffect effect) customEffect(org.bukkit.potion.PotionEffectType effect, int duration, int level) customModelData(int data) damage(double damage) List<net.kyori.adventure.text.Component>description(List<net.kyori.adventure.text.Component> description) description(net.kyori.adventure.text.Component... description) enchantment(org.bukkit.enchantments.Enchantment enchantment, int level) flags(org.bukkit.inventory.ItemFlag... flags) protected org.bukkit.inventory.ItemStackbooleanbooleanhasName()health(double health) booleanbooleanknockbackResistance(double knockback) model(int customModelData) moveSpeed(double speed) multiplyAttribute(org.bukkit.attribute.Attribute attribute, double value) net.kyori.adventure.text.Componentname()name(net.kyori.adventure.text.Component name) static ItemBuilderof(org.bukkit.inventory.ItemStack item) static ItemBuilderof(org.bukkit.Material material) playerProfile(com.destroystokyo.paper.profile.PlayerProfile profile) setAttribute(org.bukkit.attribute.Attribute attribute, double value) setCanPlace(Collection<org.bukkit.Material> blocks) tag(org.bukkit.NamespacedKey key, double value) tag(org.bukkit.NamespacedKey key, int value) tag(org.bukkit.NamespacedKey key, long value) type(org.bukkit.Material material) unbreakable(boolean value)
-
Field Details
-
item
protected org.bukkit.inventory.ItemStack item -
meta
protected org.bukkit.inventory.meta.ItemMeta meta
-
-
Constructor Details
-
ItemBuilder
public ItemBuilder(org.bukkit.Material material) -
ItemBuilder
public ItemBuilder(org.bukkit.inventory.ItemStack item)
-
-
Method Details
-
of
-
of
-
amount
-
name
public net.kyori.adventure.text.Component name() -
hasName
public boolean hasName() -
name
-
description
-
hasDescription
public boolean hasDescription() -
description
-
description
-
model
-
unbreakable
-
unbreakable
-
flags
-
damage
-
setAttribute
-
health
-
knockbackResistance
-
moveSpeed
-
attackSpeed
-
attackKnockback
-
multiplyAttribute
-
enchantment
-
customEffect
-
customEffect
-
isPotionMeta
public boolean isPotionMeta() -
playerProfile
-
isSkullMeta
public boolean isSkullMeta() -
customModelData
-
tag
-
tag
-
tag
-
tag
-
type
-
setCanPlace
-
build
public org.bukkit.inventory.ItemStack build() -
generateItem
protected org.bukkit.inventory.ItemStack generateItem()
-