Interface ItemStack.Builder

All Superinterfaces:
TagWritable
Enclosing interface:
ItemStack

public static sealed interface ItemStack.Builder extends TagWritable
  • Method Details

    • amount

      @Contract("_ -> this") @NotNull @NotNull ItemStack.Builder amount(int 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

      @Contract(value="-> new", pure=true) @NotNull @NotNull ItemStack 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 net.kyori.adventure.text.Component displayName)
    • lore

      @Contract("_ -> this") @NotNull default @NotNull ItemStack.Builder lore(@NotNull @NotNull List<? extends net.kyori.adventure.text.Component> lore)
    • lore

      @Contract("_ -> this") @NotNull default @NotNull ItemStack.Builder lore(net.kyori.adventure.text.Component... lore)