π οΈItems
Everything regarding creating/modifying Items
Item Builder
For all methods, and their java docs click here
An ItemBuilder
is a builder version of an ItemStack
. After you finish with all of your item modifications, you can call build()
to retrieve an ItemStack
.
Let's create the item in the page cover/banner.
ItemStack stack = ItemBuilder.item(Material.GRASS_BLOCK)
.name(TextStyle.style("<#eecb4e><bold>Custom Block</bold>"))
.lore(TextStyle.style(
"<#685a5e><bold>INTERESTING BLOCK</bold>",
"<#685a5e>Made with an",
"<#eecb4e>ItemBuilder"
))
.build();
Last updated
Was this helpful?