Interface ItemLore.Builder

All Superinterfaces:
DataComponentBuilder<ItemLore>
Enclosing interface:
ItemLore

@NonExtendable public static interface ItemLore.Builder extends DataComponentBuilder<ItemLore>
Builder for ItemLore.
Since:
1.21.3
  • Method Details

    • lines

      @Contract(value="_ -> this", mutates="this") ItemLore.Builder lines(List<? extends net.kyori.adventure.text.ComponentLike> lines)
      Sets the components of this lore.
      Parameters:
      lines - components
      Returns:
      the builder for chaining
      Since:
      1.21.3
      See Also:
    • addLine

      @Contract(value="_ -> this", mutates="this") ItemLore.Builder addLine(net.kyori.adventure.text.ComponentLike line)
      Adds a component to the lore.
      Parameters:
      line - component
      Returns:
      the builder for chaining
      Since:
      1.21.3
      See Also:
    • addLines

      @Contract(value="_ -> this", mutates="this") ItemLore.Builder addLines(List<? extends net.kyori.adventure.text.ComponentLike> lines)
      Adds components to the lore.
      Parameters:
      lines - components
      Returns:
      the builder for chaining
      Since:
      1.21.3
      See Also: