Interface ItemMeta.Builder

All Superinterfaces:
Taggable, TagReadable, TagWritable
All Known Subinterfaces:
ItemMetaView.Builder
All Known Implementing Classes:
BundleMeta.Builder, CompassMeta.Builder, CrossbowMeta.Builder, EnchantedBookMeta.Builder, FireworkEffectMeta.Builder, FireworkMeta.Builder, LeatherArmorMeta.Builder, MapMeta.Builder, PlayerHeadMeta.Builder, PotionMeta.Builder, WritableBookMeta.Builder, WrittenBookMeta.Builder
Enclosing interface:
ItemMeta

public static sealed interface ItemMeta.Builder extends Taggable permits ItemMetaView.Builder (not exhaustive)
  • Method Details

    • build

      @NotNull @NotNull ItemMeta build()
    • set

      @NotNull default <T> @NotNull ItemMeta.Builder set(@NotNull @NotNull Tag<T> tag, @Nullable T value)
    • damage

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder damage(int damage)
    • unbreakable

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder unbreakable(boolean unbreakable)
    • hideFlag

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder hideFlag(int hideFlag)
    • hideFlag

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder hideFlag(@NotNull @NotNull ItemHideFlag... hideFlags)
    • displayName

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder displayName(@Nullable @Nullable Component displayName)
    • lore

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder lore(@NotNull @NotNull List<? extends Component> lore)
    • lore

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder lore(Component... lore)
    • enchantments

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder enchantments(@NotNull @NotNull Map<Enchantment,Short> enchantments)
    • enchantment

      @Contract("_, _ -> this") @NotNull default @NotNull ItemMeta.Builder enchantment(@NotNull @NotNull Enchantment enchantment, short level)
    • clearEnchantment

      @Contract("-> this") @NotNull default @NotNull ItemMeta.Builder clearEnchantment()
    • attributes

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder attributes(@NotNull @NotNull List<@NotNull ItemAttribute> attributes)
    • customModelData

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder customModelData(int customModelData)
    • canPlaceOn

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canPlaceOn(@NotNull @NotNull Set<@NotNull Block> blocks)
    • canPlaceOn

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canPlaceOn(@NotNull @NotNull Block... blocks)
    • canDestroy

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canDestroy(@NotNull @NotNull Set<@NotNull Block> blocks)
    • canDestroy

      @Contract("_ -> this") @NotNull default @NotNull ItemMeta.Builder canDestroy(@NotNull @NotNull Block... blocks)