Properties

Link copied to clipboard
val id: ResourceLocation

Functions

Link copied to clipboard
fun behaviors(vararg itemBehaviors: ItemBehaviorHolder)

Sets the behaviors of this item to itemBehaviors.

Link copied to clipboard
fun config(name: String)

Configures the name of the config file in this addon's namespace.

Link copied to clipboard
fun craftingRemainingItem(material: Material)

Sets the crafting remaining item to material.

Sets the crafting remaining item to item.

Link copied to clipboard
fun hidden(hidden: Boolean)

Configures whether the item is hidden from the give command.

Link copied to clipboard
fun localizedName(localizedName: String)

Sets the localization key of the item.

Link copied to clipboard
fun maxStackSize(maxStackSize: Int)

Sets the maximum stack size of the item. Cannot exceed the maximum client-side stack size.

Link copied to clipboard
Link copied to clipboard
fun name(name: Component?)

Sets the name of the item. Can be set to null to completely hide the tooltip.

Link copied to clipboard
fun rawConfig(id: String)
fun rawConfig(id: ResourceLocation)

Configures the id of this config file in the format namespace:name.

Link copied to clipboard
fun style(vararg decorations: TextDecoration)
fun style(style: Style)
fun style(color: TextColor)
fun style(decoration: TextDecoration)
fun style(color: TextColor, vararg decorations: TextDecoration)

Sets the style of the item name.