meta

@Contract(value = "_ -> this", mutates = "this")
abstract fun meta(meta: ItemMeta): ItemStack.Builder

Sets the metadata for the item stack to the given meta.

Return

this builder

Parameters

meta

the metadata


@Contract(value = "_ -> this", mutates = "this")
open fun meta(builder: Consumer<ItemMeta.Builder>): ItemStack.Builder

Applies the given builder function to the metadata builder for this builder.

Return

this builder

Parameters

builder

the builder function to apply


@Contract(value = "_, _ -> this", mutates = "this")
open fun <B : ItemMetaBuilder<B, P>, P : ItemMetaBuilder.Provider<B>, ItemMeta> meta(type: Class<P>, builder: Consumer<B>): ItemStack.Builder

Applies the given builder function to the metadata builder for this builder.

Return

this builder

Parameters

B

the builder type

P

the metadata type

type

the type of the metadata

builder

the builder function to apply