👨‍💻
Utils Library
  • Welcome!
  • Getting Started
  • Examples
  • Docs
    • ⌨️Commands
    • ⚙️Configuration
    • ☎️Events
    • 🛠️Items
    • 🖥️Menus
    • 📖PlaceholderAPI
    • 📦Resources
    • 🎯Schedulers
    • 📅Sidebar/Scoreboard
Powered by GitBook
On this page

Was this helpful?

  1. Docs

Items

Everything regarding creating/modifying Items

PreviousEventsNextMenus

Last updated 1 year ago

Was this helpful?

Item Builder

For all methods, and their java docs click

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();

here
🛠️
Page cover image