Package net.minestom.server.item
Interface ItemStack.Builder
- All Superinterfaces:
TagWritable
- Enclosing interface:
ItemStack
-
Method Summary
Modifier and TypeMethodDescription@NotNull ItemStack.Builder
amount
(int amount) @NotNull ItemStack
build()
default @NotNull ItemStack.Builder
displayName
(@Nullable Component displayName) default @NotNull ItemStack.Builder
default @NotNull ItemStack.Builder
<V extends ItemMetaView.Builder,
T extends ItemMetaView<V>>
@NotNull ItemStack.Builder@NotNull ItemStack.Builder
meta
(@NotNull Consumer<@NotNull ItemMeta.Builder> consumer) @NotNull ItemStack.Builder
@NotNull ItemStack.Builder
meta
(@NotNull TagHandler tagHandler) @NotNull ItemStack.Builder
meta
(@NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound compound) default <T> @NotNull ItemStack.Builder
Methods inherited from interface net.minestom.server.tag.TagWritable
removeTag, setTag
-
Method Details
-
amount
-
meta
@Contract("_ -> this") @NotNull @NotNull ItemStack.Builder meta(@NotNull @NotNull TagHandler tagHandler) -
meta
@Contract("_ -> this") @NotNull @NotNull ItemStack.Builder meta(@NotNull @NotNull org.jglrxavpok.hephaistos.nbt.NBTCompound compound) -
meta
@Contract("_ -> this") @NotNull @NotNull ItemStack.Builder meta(@NotNull @NotNull ItemMeta itemMeta) -
meta
@Contract("_ -> this") @NotNull @NotNull ItemStack.Builder meta(@NotNull @NotNull Consumer<@NotNull ItemMeta.Builder> consumer) -
meta
@Contract("_, _ -> this") @NotNull <V extends ItemMetaView.Builder,T extends ItemMetaView<V>> @NotNull ItemStack.Builder meta(@NotNull @NotNull Class<T> metaType, @NotNull @NotNull Consumer<@NotNull V> itemMetaConsumer) -
build
-
set
@Contract("_, _ -> this") @NotNull default <T> @NotNull ItemStack.Builder set(@NotNull @NotNull Tag<T> tag, @Nullable T value) -
displayName
@Contract("_ -> this") @NotNull default @NotNull ItemStack.Builder displayName(@Nullable @Nullable Component displayName) -
lore
@Contract("_ -> this") @NotNull default @NotNull ItemStack.Builder lore(@NotNull @NotNull List<? extends Component> lore) -
lore
-