Skip to content

Tamikaschu/ItemBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Usage

Using the ItemBuilder with ItemMeta:

val itemStack: ItemStack = ItemBuilder.of(Material.DIAMOND_SWORD)
    .specifics { 
        displayName(Component.text("sword"))
        isUnbreakable = true
    }
    .build()

Using the ItemBuilder on different ItemMetas:

val itemStack: ItemStack = ItemBuilder.of(Material.PLAYER_HEAD, SkullMeta::class.java)
    .specifics {
        owningPlayer = player
    }
    .build()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages