Interface ItemLore


@NullMarked @Experimental @NonExtendable public interface ItemLore
Additional lines to include in an item's tooltip.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builder for ItemLore.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Unmodifiable List<Component>
    Lists the components that are added to an item's tooltip.
     
    static ItemLore
    lore(List<? extends ComponentLike> lines)
     
    @Unmodifiable List<Component>
    Lists the styled components (example: italicized and purple) that are added to an item's tooltip.
  • Method Details

    • lore

      @Contract(value="_ -> new", pure=true) static ItemLore lore(List<? extends ComponentLike> lines)
    • lore

      @Contract(value="-> new", pure=true) static ItemLore.Builder lore()
    • lines

      @Contract(pure=true) @Unmodifiable List<Component> lines()
      Lists the components that are added to an item's tooltip.
      Returns:
      component list
    • styledLines

      @Contract(pure=true) @Unmodifiable List<Component> styledLines()
      Lists the styled components (example: italicized and purple) that are added to an item's tooltip.
      Returns:
      component list