Package dev.jaims.mcutils.bukkit.item

Types

ItemBuilder
Link copied to clipboard
An item builder class. The only required parameter to initialize this is material, then you can use the methods in the builder to build the item.
class ItemBuilder(material: Material,amount: Int,damage: Int,name: String?,lore: MutableList<String>,enchantments: MutableMap<Enchantment, Int>,glow: Boolean,unbreakable: Boolean,itemflags: MutableList<ItemFlag>) : Supplier

Functions

createItem
Link copied to clipboard
create an ItemStack from a material with features
inline fun createItem(material: Material, features: ItemStack.() -> Unit): ItemStack
create an ItemStack from a copy of another itemStack with features
inline fun createItem(itemStack: ItemStack, features: ItemStack.() -> Unit): ItemStack
meta
Link copied to clipboard
Modify the item meta of a ItemStack
inline fun ItemStack.meta(meta: ItemMeta.() -> Unit)

Properties

glow
Link copied to clipboard
If the item should have a glow or not Adds or removes the ItemFlag.HIDE_ENCHANTS as well as Enchantment.WATER_WORKER
var ItemMeta.glow: Boolean
loreString
Link copied to clipboard
The string lore for an Item Separate lines with \n
var ItemMeta.loreString: String
name
Link copied to clipboard
The name for an item.
var ItemMeta.name: String
unbreakable
Link copied to clipboard
Should the item be unbreakable or not Adds or removes ItemFlag.HIDE_UNBREAKABLE and uses ItemMeta.setUnbreakable
var ItemMeta.unbreakable: Boolean