Interface ItemLore.Builder
- All Superinterfaces:
- DataComponentBuilder<ItemLore>
- Enclosing interface:
- ItemLore
@Experimental
@NonExtendable
public static interface ItemLore.Builder
extends DataComponentBuilder<ItemLore>
Builder for 
ItemLore.- 
Method SummaryModifier and TypeMethodDescriptionaddLine(ComponentLike line) Adds a component to the lore.addLines(List<? extends ComponentLike> lines) Adds components to the lore.lines(List<? extends ComponentLike> lines) Sets the components of this lore.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilderbuild
- 
Method Details- 
lines@Contract(value="_ -> this", mutates="this") ItemLore.Builder lines(List<? extends ComponentLike> lines) Sets the components of this lore.- Parameters:
- lines- components
- Returns:
- the builder for chaining
- See Also:
 
- 
addLineAdds a component to the lore.- Parameters:
- line- component
- Returns:
- the builder for chaining
- See Also:
 
- 
addLines@Contract(value="_ -> this", mutates="this") ItemLore.Builder addLines(List<? extends ComponentLike> lines) Adds components to the lore.- Parameters:
- lines- components
- Returns:
- the builder for chaining
- See Also:
 
 
-